git - 强制 godep 在 circle build 中通过 SSH 从 github 中 pull 包

标签 git github go geometry godeps

我们在单独的 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/

相关文章:

git - 对不受信任的用户 stash 部分 git repo

github - 是否有集成 Assembla/GitHub 的云 IDE?

Github 的 gitignore 配置文件,但不是 Heroku

go - 如何增加 klog 级别的冗长程度?

go - 如何通过 ip 地址和主机连接到已部署的 grpc-server

使用非默认 SSH key 的 git clone

git - 转义 git 提交消息中的注释字符 (#)

git - 如何让 bash 补全与别名一起使用?

GitHub API 创建文件返回 404

amazon-web-services - 模拟AWS Go SSM GetParameter调用