Composer local packages -
i can't composer work local packages.
package a:
{ "name": "package/a", "repositories": [ { "type": "vcs", "url": "../b" } ], "require": { "package/b": "dev-master" } }
package b:
{ "name": "package/b", "repositories": [ { "type": "vcs", "url": "../c" } ], "require": { "package/c": "dev-master" } }
package c:
{ "name": "package/c", }
now installing package b works fine , resolves package c properly. installing package fails because can not resolve package c package b, dependency of package a.
i couldn't find @google, looks composer can't handle kind of complexity in local packages. i'm wrong.
here small illustration better understanding of problem.
composer doesn't load local repos recursively.
1) might declare dependencies b , c in a. have redefine dependencies in composer.json. here, add more require , repository defines composer.json of a.
2) or might setup local satis proxy, serves private packages.
private or public publishing of dependencies resolve situation.
Comments
Post a Comment