0

I have latest deps available in my $GOPATH. Now i want to update my project Godeps.json with new deps(with latest GOPATH) by calling godep update ./... and then calling godep save ./... . however still I am with old deps in Godeps.json .

Cœur
  • 37,241
  • 25
  • 195
  • 267
Sam
  • 1,333
  • 5
  • 23
  • 36

2 Answers2

0

Please check this out difference between godep update and godep save. I usually just use godep save unless I am updating a specific package. This grabs all the updated packages for the project from GOPATH. BTW: I am also fairly new to Godeps.

Sthe
  • 2,575
  • 2
  • 31
  • 48
  • Thanks @sthe . I tried godep save also however its coming with same result – Sam Mar 04 '16 at 09:09
  • No no error. Now i think the answer given by Rohardjo looks logical and this is how doc of hashicorp says. I am trying it will update again here. Thanks – Sam Mar 04 '16 at 10:18
  • I see. Let us know how it goes :-) – Sthe Mar 04 '16 at 10:22
0

Make sure you have git committed package you want to update, you can check the commit sha-1 checksum using git log and make sure it has different rev commit version in Godeps.json. Then include package name in godep command godep update github.com/package/...

  • Thanks Rohardjo. This was exactly the problem. I overlooked git stuff while reading the doc of terrraform. Thanks – Sam Mar 05 '16 at 07:14