我正在使用GitHub Actions将内容部署到Azure。在这个项目中,我使用了我们自己私有的存储库,这些存储库托管在GitHub上。这些存储库将在构建过程中被安装,并且它们的链接将存储在requirements.txt
文件中,例如:
git+ssh://git@github.com/org-name/package-name.git
在本地安装要求没有问题,因为我可以通过SSH访问这些私有存储库。但是在GitHub actions构建期间如何访问它们。
我得到了以下错误:
Collecting git+ssh://****@github.com/org-name/package-name.git (from -r requirements.txt (line 1))
Cloning ssh://****@github.com/org-nam/package-name.git to /tmp/pip-req-build-9nud9608
ERROR: Command errored out with exit status 128: git clone -q 'ssh://****@github.com/org-name/package-name.git' /tmp/pip-req-build-9nud9608 Check the logs for full command output.
Error: Process completed with exit code 1.
这是有道理的,因为它是一个私人仓库。
--global
标志的原因是什么? - Tzane--global
标志进行测试。@Tzane - Erfan