Sam Wilson's Journal

NewsPhotosArchivesContactWiki

 «   »

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…

[8 comments] [Keywords: , , , , , , , , , ] [Permanent link] [13,673 views]

Comments:

  1. On July 6th, 2014 at 11:20, leather satchel handbags said:

    leather satchel handbags

    Sam Wilson’s Journal » Composer repository URLs can?t use UNC paths?

    [permalink]

  2. On July 14th, 2014 at 04:56, Edmonton Insurance said:

    Edmonton Insurance

    Sam Wilson’s Journal

    [permalink]

  3. On July 18th, 2014 at 15:55, Find Plumbers in MN said:

    Find Plumbers in MN

    Sam Wilson’s Journal » Composer repository URLs can?t use UNC paths?

    [permalink]

  4. On July 20th, 2014 at 12:26, atlanta commercial real estate for sale said:

    atlanta commercial real estate for sale

    Sam Wilson’s Journal

    [permalink]

  5. On August 12th, 2014 at 23:11, mr muscle said:

    mr muscle

    Sam Wilson’s Journal » Composer repository URLs can?t use UNC paths?

    [permalink]

  6. On August 15th, 2014 at 12:24, supra cleanse 350 review said:

    supra cleanse 350 review

    Sam Wilson’s Journal » Composer repository URLs can?t use UNC paths?

    [permalink]

  7. On August 16th, 2014 at 06:10, Website/Blog said:

    Website/Blog

    Sam Wilson’s Journal » Composer repository URLs can?t use UNC paths?

    [permalink]

  8. On August 24th, 2014 at 02:53, picttwitter.com said:

    picttwitter.com

    Sam Wilson’s Journal » Composer repository URLs can?t use UNC paths?

    [permalink]

Leave a Reply

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

2 × = fourteen

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

« »