尽可能简单地说:我们有一个私人 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 列表变得非常大。我们需要清理它。我不认为有某种方法可以为键添加全局选项?由主机?