我想在提交拉取请求之前尝试在我的本地项目中对Doctrine ORM进行的修改.
我已将我的修改推送到我的GitHub存储库克隆中的default-lockmode分支,然后将以下内容添加到composer.json:
{
"require": {
"doctrine/orm": "dev-default-lockmode"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/BenMorel/doctrine2.git"
}
]
}
我认为这将有利于我的Git存储库中找到的doctrine / orm包而不是Packagist的包,但仍然从Packagist加载其他包.
但是,当我运行composer update时,我收到以下错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
Installation request for doctrine/orm dev-default-lockmode -> satisfiable by doctrine/orm[dev-default-lockmode].
doctrine/orm dev-default-lockmode requires doctrine/dbal >=2.5-dev,<2.6-dev -> no matching package found.
Potential causes:
A typo in the package name
The package is not available in a stable-enough version according to your minimum-stability setting
所以看起来它现在希望在我的GitHub存储库中找到所有包.
是否可以仅为doctrine / orm使用自定义存储库,但仍然使用Packagist用于所有其他存储库?