2016-03-05 51 views
6

你好我下面的hashicorp/terraform给出以下活动如何更新供应商的文件夹https://github.com/hashicorp/terraform.git为terraform

# Get latest master branch's dependencies staged in local $GOPATH 
git checkout master 
git pull 
godep restore -v 

# Make your way to the dependency in question and checkout the target ref 
pushd $GOPATH/src/github.com/some/dependency 
git checkout [latest] 

# Head back to Terraform on a feature branch and update the dependncy to the 
# version currently in your $GOPATH 
popd 
git checkout my-feature-branch 
godep update github.com/... 

执行后这是我可以步骤看到我的Godep.json文件已更新,但我没有看到供应商文件夹中的更改。它仍然指向老。那么我正在寻找供应商的emr支持,因为我正在更新go-aws-sdk,这是最新的aws-sdk。当我打电话去更新github.com/...它修改了godep.json而不是供应商文件夹。 有人请让我知道原因。谢谢

回答

1

你必须再次做一个godep restore -vupdate只会更新Godep.json文件中的依赖关系。

相关问题