我有一个项目依赖于本地包,它本身依赖于另一个本地包。
项目
{ ... "repositories": [ { "packagist": false }, { "type": "vcs", "url": "/path/to/local/package1" }, ], "require": { "local/package1": "dev-master" } ... }
套餐1
{ ... "repositories": [ { "packagist": false }, { "type": "vcs", "url": "/path/to/local/package2" }, ], "require": { "local/package2": "dev-master" } ... }
当我在composer install
上执行package1
时,一切正常,packages2
已找到并已安装。但是当我在project
上执行此操作时,找不到package2
此错误:
Problem 1 - Installation request for local/package1 dev-master -> satisfiable by local/package1[dev-master]. - local/package1 dev-master requires local/package2 dev-master -> no matching package found.