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. enter image description here

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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -