需要一些帮助来理解 satis.json 的场景,我的问题是我们已经有一个名为“xamin/handlebars.php”的包在我们的项目中用作作曲家依赖项,最近这个包被放弃了,所以我们已计划将存储库分叉到我们的内部 github 并为其添加补丁。现在是时候告诉我的 satis.json 使用我们 github 内部存储库中的最新版本。
所以我已将存储库部分更新为
"repositories": [
{"name": "xamin/handlebars.php",
"type": "git",
"url": "git@github.corp.test.com:BE/XaminProject-handlebars.php.git"}
],
我只是在需要部分保持原样:
"require": {
"xamin/handlebars.php": "0.10.5",
}
现在,如果我尝试从本地开发人员进行作曲家更新:
它说:
Loading composer repositories with package information
Warning: Accessing satis-new.test.com over http which is an insecure protocol.
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package xamin/handlebars.php ^0.10.5 exists as xamin/handlebars.php[v0.10.4, v0.10.0, v0.10.1, v0.10.2, v0.10.3] but these are rejected by your constraint.