Composer repository URLs can’t use UNC paths?

It would seem that when using Composer on Windows, one cannot use UNC paths as repository URLs. That is to say, the following doesn’t work:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "//SERVER/Share/project.git"
    },
  ]
}

Instead, the share must be mapped and the mapped drive letter used:

      "url": "G:/project.git"

This does, of course, have the stupid side effect of forcing everyone who uses the composer.json in question to map the share to the same drive letter! However, this is hardly the most significant of the miseries that one must live through when developing software on Windows…

This entry was posted in Programming and tagged , , , , , , , , , . Bookmark the permalink.

One Response to Composer repository URLs can’t use UNC paths?

  1. Helene says:

    Solicite un Cerrajeros veinticuatro horas en Cúllar Vega y llegaremos cuanto
    antes, nuestros márgenes de llegada son mínimos, no más de 15 veinticinco minutos.

Leave a Reply

Your email address will not be published. Required fields are marked *