我有两个私有的butbucket存储库,它们涉及冲突:
- 比格兰/YII2-型号-目录(当前为1.0.19)
- Bigland/Yii2-模型-概念计划(当前为1.0.5)
Bigland/Yii2-models-catalog Conmposer.json
{
"name": "bigland/yii2-models-catalogue",
"minimum-stability": "dev",
"license": "proprietary",
"require": {
"php": ">=5.4.0",
"fxp/composer-asset-plugin": ">=1.0.3",
"yiisoft/yii2": "~2.0.0",
"yiisoft/yii2-httpclient": "2.0.x-dev",
"league/geotools": "~0.7.0",
"voskobovich/yii2-many-many-behavior": "*",
"yandex/fotki": "dev-master",
"bigland/yii2-user": "*",
"bigland/yii2-base": "*",
"bigland/yii2-geo": "*",
"bigland/yii2-components-yandex-fotki-api-access": "~1.0.0",
"bigland/yii2-behaviors-yandex-fotki-album": "~1.0.0",
"bigland/yii2-models-conceptual-plan": "~1.0.0",
"fabpot/goutte": "~2.0.4"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/romka-chev/php-yandex-fotki"
},
{
"type": "vcs",
"url": "https://bitbucket.org/bigland/yii2-user"
},
{
"type": "vcs",
"url": "https://bitbucket.org/bigland/yii2-base"
},
{
"type": "vcs",
"url": "https://bitbucket.org/bigland/yii2-geo"
},
{
"type": "vcs",
"url": "https://bitbucket.org/bigland/yii2-components-yandex-fotki-api-access"
},
{
"type": "vcs",
"url": "https://bitbucket.org/bigland/yii2-behaviors-yandex-fotki-album"
},
{
"type": "vcs",
"url": "https://bitbucket.org/bigland/yii2-models-conceptual-plan"
}
],
"autoload": {
"psr-4": {
"bigland\models\catalogue\": ""
}
},
"require-dev": {
"yiisoft/yii2-codeception": "^2.0"
}
}
Bigland/Yii2-models-conceptual-plan Composer.json
{
"name": "bigland/yii2-models-conceptual-plan",
"minimum-stability": "dev",
"license": "proprietary",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "~2.0.0",
"league/geotools": "~0.7.0",
"voskobovich/yii2-many-many-behavior": "*",
"bigland/yii2-user": "*",
"bigland/yii2-base": "*",
"bigland/yii2-geo": "*",
"bigland/yii2-components-yandex-fotki-api-access": "~1.0.0",
"bigland/yii2-behaviors-yandex-fotki-album": "~1.0.0",
"bigland/yii2-models-catalogue": "~1.0.0"
},
"repositories": [
{
"type": "vcs",
"url": "https://bitbucket.org/bigland/yii2-user"
},
{
"type": "vcs",
"url": "https://bitbucket.org/bigland/yii2-base"
},
{
"type": "vcs",
"url": "https://bitbucket.org/bigland/yii2-geo"
},
{
"type": "vcs",
"url": "https://bitbucket.org/bigland/yii2-components-yandex-fotki-api-access"
},
{
"type": "vcs",
"url": "https://bitbucket.org/bigland/yii2-behaviors-yandex-fotki-album"
},
{
"type": "vcs",
"url": "https://bitbucket.org/bigland/yii2-models-catalogue"
}
],
"autoload": {
"psr-4": {
"bigland\models\conceptualPlan\": ""
}
}
}
如果我composer update
运行到bigland/yii2-models-conceptual-plan存储库中 - 一切都很好。
如果我composer update
运行到bigland/yii2-model-catalog存储库中 - 我有以下错误:
Problem 1
- bigland/yii2-models-conceptual-plan dev-master requires bigland/yii2-models-catalogue ~1.0.0 -> no matching package found.
- bigland/yii2-models-conceptual-plan 1.0.3 requires bigland/yii2-models-catalogue ~1.0.0 -> no matching package found.
- bigland/yii2-models-conceptual-plan 1.0.2 requires bigland/yii2-models-catalogue ~1.0.0 -> no matching package found.
- bigland/yii2-models-conceptual-plan 1.0.1 requires bigland/yii2-models-catalogue ~1.0.0 -> no matching package found.
- bigland/yii2-models-conceptual-plan 1.0.5 requires bigland/yii2-models-catalogue ~1.0.0 -> no matching package found.
- bigland/yii2-models-conceptual-plan 1.0.4 requires bigland/yii2-models-catalogue ~1.0.0 -> no matching package found.
- Installation request for bigland/yii2-models-conceptual-plan @dev -> satisfiable by bigland/yii2-models-conceptual-plan[1.0.4, 1.0.5, 1.0.1, 1.0.2, 1.0.3, dev-master].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
为什么会这样?
你有循环依赖性是不是很奇怪?A -> B -> A
解决方案如下:将循环依赖项版本替换为 dev-master
而不是 1.0.x
。
Bigland/Yii2-models-catalog Conmposer.json
"bigland/yii2-models-conceptual-plan": "dev-master"
Bigland/Yii2-models-conceptual-plan Composer.json
"bigland/yii2-models-catalogue": "dev-master"