您好我想了解如何更新terraform的aws-sdk-go依赖项。为此,我配置了
按照以下说明进行GOPATH。
http://www.wadewegner.com/2014/12/easy-go-programming-setup-for-windows/
我在$ path中安装并配置了“godep”。 所以现在我可以从cmd运行“go”和“godep”了。
根据开发的terraform部分\指南给出
https://github.com/hashicorp/terraform我克隆了git
它在$GOPATH/src/github.com/hashicorp/terraform
再次按照指南我只想更新aws-sdk-go deps。所以我正在运行
godep update github.com\aws\aws-sdk-go
在cmd上获取以下消息
godep: not in manifest: github.com\aws\aws-sdk-go
godep: Package (github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest) not found
我还验证了路径
D:\Ampush\Projects\GO\src\github.com\hashicorp\terraform\vendor\github.com\Azure\azure-sdk-for-go\Godeps\_workspace\src\github.com\Azure\go-autorest\autorest
存在于我的机器上。
我正在从路径下面运行命令
D:\Ampush\Projects\GO\src\github.com\hashicorp\terraform>
使用更多调查结果进一步更新
如果我运行第一个godep restore -v那么它已经下载了很多东西。 然后我发现我的命令错了,现在我将其更新为
godep update github.com/aws/aws-sdk-go/aws //hint saw in Godep.json
现在我正在
godep: no packages can be updated
我想在某个地方我必须提到哪个版本我应该更新默认我假设它将采取最新的主人。
答案 0 :(得分:0)
godep update
将从您的全球gopath版本更新已售出的版本。要在您的gopath中获取最新版本,请运行go get -u github.com/aws/aws-sdk-go
,然后运行godep update