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

`godep save ./...` reports successfully, but `godep restore` or clean building fail #496

Closed cuonglm closed 8 years ago

cuonglm commented 8 years ago

Expected behavior

godep restore successfully

Actual behavior

godep restore failed

$ godep restore   
godep: Dep (github.com/docker/docker/pkg/mount) restored, but was unable to load it with error:
    Package (golang.org/x/sys/unix) not found
godep: Dep (github.com/ghodss/yaml) restored, but was unable to load it with error:
    Package (github.com/cloudfoundry-incubator/candiedyaml) not found
godep: Dep (github.com/opencontainers/runc/libcontainer/cgroups) restored, but was unable to load it with error:
    Package (github.com/Sirupsen/logrus) not found
godep: Dep (github.com/opencontainers/runc/libcontainer/cgroups/fs) restored, but was unable to load it with error:
    Package (github.com/Sirupsen/logrus) not found
godep: Dep (github.com/opencontainers/runc/libcontainer/configs) restored, but was unable to load it with error:
    Package (github.com/Sirupsen/logrus) not found
godep: Dep (golang.org/x/oauth2/google) restored, but was unable to load it with error:
    Package (google.golang.org/appengine) not found
godep: Error checking some deps.

Steps to reproduce behavior

In clean GOPATH:

$ go get github.com/skippbox/kubewatch
$ cd "$GOPATH"/src/github.com/skippbox/kubewatch
$ godep save ./...

Switch to clean GOPATH (using goenv or manually set GOPATH):

$ godep restore

godep version output

$ godep version
godep v74 (linux/amd64/go1.6.2)

go version output

$ go version
go version go1.6.2 linux/amd64

Contents of Godeps.json file

https://github.com/skippbox/kubewatch/blob/master/Godeps/Godeps.json

freeformz commented 8 years ago

This is confirmed and strange. I am out most of today through monday though.

freeformz commented 8 years ago

My next step is to godep save -v -d ./... &> log and walk through the log to see why this is happening.

freeformz commented 8 years ago

I am really not sure what is going on here. I will have to look deeper when I get back from vacation on tuesday. Your existing work around LGTM for now. Sorry.