Closed ilovezfs closed 7 years ago
That's not a valid Godeps.json file because the package specified is not a valid go package declaration because it (a) contains no valid *.go files and (b) the packages contained there are actually golang.org/x/tools
. So if the file is changed to:
{
"ImportPath": "github.com/tools/godep",
"GoVersion": "go1.7",
"Deps": [
{
"ImportPath": "golang.org/x/tools/cover",
"Rev": "3fe2afc9e626f32e91aff6eddb78b14743446865"
}
]
}
godep restore
works properly because the correct namespace for the code is golang.org/x/tools
and golang.org/x/tools/cover
is an actual go package.
PS: This may have worked in previous versions of godep, but that was purely by accident.
Thanks for the help!
Note that the following does not occur with v78, and the cause appears to be https://github.com/tools/godep/commit/f15f6db5da33a4ac48be83e20b9dd838e14f117b.
Expected behavior
godep restore
should succeed.Actual behavior
godep restore
fails.Steps to reproduce behavior
Run the homebrew test block:
Error is
godep version
outputgo version
outputContents of Godeps.json file