【发布时间】:2019-10-16 19:27:35
【问题描述】:
尽可能简单地说:我们有一个私人 VC 存储库,其中包含我们内部使用的作曲家包列表 -- [our-bitbucket.com]/comp/
每个包都有自己的仓库。每个包都在其composer.json 配置中的 [orgname]/ 下命名空间。
我想做的是收拾这个烂摊子:
"repositories": [
{
"type": "vcs",
"url": "ssh://git@our-bitbucket.com/comp/package1",
"options": {
"ssh2": {
"username": "git",
"pubkey_file": ".ssh/pub-key",
"privkey_file": ".ssh/priv-key"
}
}
},
{
"type": "vcs",
"url": "ssh://git@our-bitbucket.com/comp/package2",
"options": {
"ssh2": {
"username": "git",
"pubkey_file": ".ssh/pub-key",
"privkey_file": ".ssh/priv-key"
}
}
},
// [... a dozen more times ...]
],
有没有更好更简单的方法来管理这个?这个 repo 列表变得非常大。我们需要清理它。我不认为有某种方法可以为键添加全局选项?按主机?
【问题讨论】:
标签: composer-php satis