Can't get composer “path” repository to work

前端 未结 5 1789
庸人自扰
庸人自扰 2020-12-29 19:02

I have a directory structure like so:

composer.json < Main
  packages/
    balunker/
      testpackage/
        composer.json < Package
        src/
           


        
5条回答
  •  我在风中等你
    2020-12-29 19:50

    What worked for me was very similar to the above, but I had to specifically target the branch I was developing on.

    Assuming code in directory /newapp on the same level as /app, and a branch named feature/the-new-package:

    "repositories": [
      {
        "type": "path",
        "url": "newapp"
      }
    ],
    "require": {
      "package/newapp": "dev-feature/the-new-package"
    },
    

    \* did not work, neither did dev-master. It had to be dev-feature/the-new-package.

提交回复
热议问题