tools / godep

dependency tool for go
http://godoc.org/github.com/tools/godep
BSD 3-Clause "New" or "Revised" License
5.54k stars 455 forks source link

save deletes everything and update does nothing #469

Closed tjannaud closed 8 years ago

tjannaud commented 8 years ago

Hi, Im pretty new to Go but not to software. Im working on a new team with lots of projects and dependencies so we must use godep.

All the code is structure in the standard Go way, with files in $GOPATH/.../github.com/... etc (including our work which is in github)

I made changes to project A (github.com/ourTeam/A) and I want to run project B (github.com/ourTeam/B) which references A to test my code. So I commit my work from A in my own branch in A, (and even pushed the branch).

-> All I want is to update B with my new version of A.

From B, I tried:

What am I missing ?

Note: Im using godep v65 (darwin/amd64/go1.6.2) and

godep save -v
godep: Finding dependencies for [.]
godep: Found package: github.com/ourTeam/B
godep:  Deps:
(nothing so the diff with old file removes everything)
freeformz commented 8 years ago

Please update godep and try again, there are some update fixes recently. WRT save removing everything. This is because godep was unable to find any deps for the provided package spec (defaults to '.'). So either (a) save was run w/o the right package spec, (b) some weird symlink issue, (c) another filesystem case bug.

tjannaud commented 8 years ago

v69 fixed this, thanks

kristijan-ujevic commented 8 years ago

this is not fixed, running version "godep v74 (linux/amd64/go1.6.2)"