wikimedia / composer-merge-plugin

Merge one or more additional composer.json files at Composer runtime
MIT License
934 stars 159 forks source link

Ignores path repositories #156

Closed vercotux closed 6 years ago

vercotux commented 7 years ago

I just tried merging a path repository, but it seems to have completely ignored it because none of the packages were found.

composer.json:

{
    "require": {
        "wikimedia/composer-merge-plugin": "dev-master",
        "mydeps/my-dep-x": "*"
    },
    "extra": {
        "merge-plugin": {
            "repositories": [
                "composer.repos.json"
            ]
        }
    }
}

composer.repos.json:

{"repositories": [
        {
                "type": "path",
                "url": "~/mydeps/my-dep-*"
        }
]}

If I simply move the path repository into the main composer.json, everything works fine.

far-blue commented 6 years ago

I don't know if this will fix things or if it was just a typo in your issue but in the "extra" section, the "repositories" key should be "include"

vercotux commented 6 years ago

@far-blue That was it! Thank you.