tools / godep

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

Missing libraries after execute `godep save` #516

Closed jommgoncalves closed 7 years ago

jommgoncalves commented 7 years ago

Expected behavior

After execute godep save we expected that all dependencies are in the file Godeps/Godeps.json.

Actual behavior

The library github.com/bmizerany/assert used in all *_test.go is missing.

Steps to reproduce behavior

godep save

godep version output

godep v74 (darwin/amd64/go1.6.2)

go version output

go version go1.6.3 darwin/amd64

chnrxn commented 7 years ago

I saw the same behavior too. If the main package is not in the current directory, could you try supplying the path to the main package? E.g. godep save -v ./cmd/...

Note: I put all my main packages under ./cmd/, hence my example command.

freeformz commented 7 years ago

godep save w/o a package spec defaults to '.'. So if there are not packages in the current directory nothing will be saved.

On Thu, Nov 10, 2016 at 12:04 AM chnrxn notifications@github.com wrote:

I saw the same behavior too. If the main package is not in the current directory, could you try supplying the path to the main package? E.g. godep save -v ./cmd/...

Note: I put all my main packages under ./cmd/, hence my example command.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tools/godep/issues/516#issuecomment-259625504, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAAZx1UgCs4ShU_i_XV-TiNXee7Tu-Wks5q8s_zgaJpZM4KAuQq .