我有一个私有存储库,想将其包含在我的composer.json中,并将私有存储库放置在vendor文件夹中。使用来自https://getcomposer.org/doc/articles/handling-private-packages-with-satis.md#security的代码与SSH安全性,在填写一些用户特定部分后(见下文)即可实现。
问题是我正在与其他程序员一起工作,我不想在composer.json文件中包含特定用户内容。有没有办法从composer.json文件中排除特定用户内容?
实际上,我希望composer在命令行执行时要求程序员输入其个人公钥和私钥。
"repositories": [
{
"type": "vcs",
"url": "ssh2.sftp://example.org",
"options": {
"ssh2": {
"username": "composer",
"pubkey_file": "/home/composer/.ssh/id_rsa.pub",
"privkey_file": "/home/composer/.ssh/id_rsa"
}
}
}
]
问题是我正在与其他程序员一起工作,我不想在composer.json文件中包含特定用户内容。有没有办法从composer.json文件中排除特定用户内容?
实际上,我希望composer在命令行执行时要求程序员输入其个人公钥和私钥。