英文:
godep save ./... seems not working for https://github.com/hashicorp/terraform
问题
你好,我正在使用以下链接进行翻译:https://github.com/hashicorp/terraform。根据给定的“添加依赖项”部分,我已成功运行以下命令:
git checkout master
git pull
godep restore -v # 标志是可选的,启用详细输出
git checkout my-feature-branch
git rebase master
现在当我运行
godep save ./...
时,我得到了一些找不到的包。如果我手动使用go get更新此包,那么它会显示另一个包,依此类推。请告诉我如何成功运行这个命令,谢谢。
英文:
Hi i am following the link https://github.com/hashicorp/terraform . As per given section "Adding a dependency" i have successfully run below commands
git checkout master
git pull
godep restore -v # flag is optional, enables verbose output
git checkout my-feature-branch
git rebase master
Now when i run
godep save ./...
i am getting few packages not found.
if i manually update this package with go get then it looks another one and so on..
Please let me know how can i run this successfully thanks
答案1
得分: 1
godeps
要求依赖项已经存在于你的 GOPATH
中。如果你还没有下载依赖项,请先运行以下命令:
go get ./...
然后你可以运行以下命令:
godep save ./...
英文:
godeps
requires the dependencies to be already in your GOPATH
. If you haven't downloaded the dependencies (yet), first run
go get ./...
Then you can run
godep save ./...
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论