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 .
Asked
Active
Viewed 711 times
2 Answers
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/...

Septiaji Purwono Rahardjo
- 24
- 1
- 3
-
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