php composer 库,composer-php – 在Composer中使用自定义Git存储库和Packagist

我想在提交拉取请求之前尝试在我的本地项目中对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用于所有其他存储库?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值