godep save ./… seems not working for https://github.com/hashicorp/terraform

爷,独闯天下 提交于 2019-12-11 23:29:43

问题


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:


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 ./...


来源:https://stackoverflow.com/questions/35766457/godep-save-seems-not-working-for-https-github-com-hashicorp-terraform

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!