tools / godep

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

Godep fails to parse dependencies when `._` files are present. #441

Open pquerna opened 8 years ago

pquerna commented 8 years ago

Running godep on Linux, on a path that has shared over sshfs with OSX, sometimes a ._foo.go is created by OSX for various reasons.

When this happens, godep save will report zero dependencies for the entire package.

No error is reported, just godep save -v will show an empty list of dependencies.

freeformz commented 8 years ago

It's probably an invalid go file, likely a temporary editor file. Godep should skip parsing files that start with '.' and it should return parsing errors to the user. I'll see about fixing at least the former a little later today.

Sent from my iPhone

On Mar 27, 2016, at 23:03, Paul Querna notifications@github.com wrote:

Running godep on Linux, on a path that has shared over sshfs with OSX, sometimes a ._foo.go is created by OSX for various reasons.

When this happens, godep save will report zero dependencies for the entire package.

No error is reported, just godep save -v will show an empty list of dependencies.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub