我们在单独的 repos 中有 go 包到正在构建的包中。我们已经使用 github 用户 key ( https://circleci.com/docs/github-security-ssh-keys/ ) 设置了构建,以便它可以访问包含依赖项的私有(private)存储库。但是,调用 godep restore 会导致 git clone https://... 调用。
是否可以使用 SSH 类型的 url 强制 godep 恢复包?或者,是否可以以某种方式使用用户 key 通过 HTTPS 启用身份验证?
我已经尝试了这里建议的所有内容,但到目前为止没有任何乐趣:https://gist.github.com/shurcooL/6927554
最佳答案
看来你在滥用 Godeps :-)
根据 their FAQ您应该考虑将 vendor
目录 checkin 您正在构建的 repo(即:所有外部依赖项)。
关于git - 强制 godep 在 circle build 中通过 SSH 从 github 中 pull 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39224568/