我有項目projectAlfa
和我的依賴關係my/project-beta
。但my/project-beta
有依賴關係otherProject
沒有composer.json。所以我在my/project-beta
中定義了類型package
的存儲庫。加載對Composer的依賴關係以及依賴關係中定義的存儲庫
項目阿爾法composer.json
{
"repositories": [
{
"type": "git",
"url": "http://github.com/my/project-Beta"
}
],
"require": {
"my/project-beta": "dev-master"
}
}
工程測試版composer.json
{
"name": "my/project-beta",
"repositories": [
{
"type": "package",
"package": {
"name": "other/project",
"version": "dev-master",
"source": {
"type": "git",
"url": "http://github.com/Other/Project",
"reference": "master"
}
}
}
],
"require": {
"other/project": "*"
}
}
問題:
如果我composer install
上projectAlfa
則依賴性沒有被加載運行,因爲:
my/project-beta dev-master requires other/project * -> no matching package found