Sam
Sam

Reputation: 1363

Terraform - Process to Update vendor aws-sdk-go dependencies to latest

Hi I am trying to understand as how to update the aws-sdk-go dependencies for terraform. To do this i have configured the

  1. GOPATH as per instruction given below.

    http://www.wadewegner.com/2014/12/easy-go-programming-setup-for-windows/

  2. I have installed and configured "godep" in $path. So now i am able to run "go" and "godep" from cmd.

as per development terraform section\guideline given at https://github.com/hashicorp/terraform i have git cloned it at $GOPATH/src/github.com/hashicorp/terraform

again as per guideline i just want to update aws-sdk-go deps. so i am running

godep update github.com\aws\aws-sdk-go 

getting below message on 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 

I have also verified that path

 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

exists on my machine.

I am running command from below path

D:\Ampush\Projects\GO\src\github.com\hashicorp\terraform>

Updating this further with more findings

if i run first godep restore -v then it has downloaded many stuffs. then i figured out that my command was wrong now i updated it to

godep update github.com/aws/aws-sdk-go/aws  //hint saw in Godep.json

Now i am getting

godep: no packages can be updated

i guess that somewhere i have to mention as to which version i should update default i was assuming it will take latest from the master.

cmd image Could you please let me know if i am missing something. Thanks

Upvotes: 0

Views: 537

Answers (1)

GarMan
GarMan

Reputation: 1044

godep update will update the vendored version from your global gopath version. To get the latest version in your gopath run something like go get -u github.com/aws/aws-sdk-go then you can run your godep update

Upvotes: 0

Related Questions