7

嗨,我正在遵循为 hashcorp/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 可用的 go-aws-sdk。当我调用 go update github.com/... 它修改了 godep.json 但没有修改供应商文件夹。有人可以告诉我原因。谢谢

4

1 回答 1

2

你必须再做godep restore -v一次。update仅更新文件中的依赖Godep.json项。

于 2016-03-14T19:16:23.457 回答