Composer SVN dependency error -
i have library classes in svn i've been using composer successfully. today ran problem, composer believes cannot find matching package, though there , composer can find in other circumstances.
here composer.json 2 packages in question:
{ "name": "clx/auth", "repositories": [ { "type": "vcs", "url": "https://svn.example.com/", "package-path": "ldap" } } ], "require": { "clx/ldap": "dev-trunk" } } { "name": "clx/ldap", "repositories": [ { "type": "vcs", "url": "https://svn.example.com/", "package-path": "clxmsg" }, { "type": "vcs", "url": "https://svn.example.com/", "package-path": "configini" } ], "require": { "clx/clxmsg": "dev-trunk", "clx/configini": "dev-trunk" } } when run install in clx/ldap directory, output looks , good. note does find clx/clxmsg , clx/configini without trouble:
$ composer install loading composer repositories package information installing dependencies (including require-dev) - installing icecave/isolator (dev-develop fdf22e6) cloning fdf22e670e7d10b51335083817ca0e8597c41168 - installing psr/log (dev-master 9e45edc) cloning 9e45edca52cc9c954680072c93e621f8b71fab26 - installing cxj/phpsyslog (v1.1.3) loading cache - installing clx/clxmsg (dev-trunk) checking out /trunk/clxmsg/@24831 - installing clx/configini (dev-trunk) checking out /trunk/configini/@24831 writing lock file generating autoload files yet when go clx/auth package directory, fails find clx/clxmsg while satisfying clx/ldap -- package above where worked!
$ composer install loading composer repositories package information installing dependencies (including require-dev) requirements not resolved installable set of packages. problem 1 - installation request clx/ldap dev-trunk -> satisfiable clx/ldap[dev-trunk]. - clx/ldap dev-trunk requires clx/clxmsg dev-trunk -> no matching package found. what doing wrong? or there bug in composer doing recursive dependency resolution when using vcs sources in svn?
i believe same problem described in composer doesn't find local vcs dependency. unable find referenced post while searching nicely came in "similar questions" column on right once had typed in problem description.
the short answer "composer not vcs packages." referenced question appears use git instead of svn, makes no difference.
the explanation in answers above referenced question, , in provided link composer faq (https://getcomposer.org/doc/faqs/why-can%27t-composer-load-repositories-recursively.md) describe why not work expected.
Comments
Post a Comment