can't load package: package _/home/dan/envdb: cannot find package "_/home/dan/envdb" in any of:
dbkaplun opened this issue · 8 comments
dbkaplun commented
$ make
==> Embedding Assets
==> Installing dependencies
can't load package: package _/home/dan/envdb: cannot find package "_/home/dan/envdb" in any of:
/usr/lib/go/src/pkg/_/home/dan/envdb (from $GOROOT)
/home/dan/envdb/Godeps/_workspace/src/_/home/dan/envdb (from $GOPATH)
/home/dan/stuff/src/_/home/dan/envdb
godep: go exit status 1
godep: exit status 1
make: *** [deps] Error 1
$ echo $GOROOT x $GOPATH
x /home/dan/stuff
djcas9 commented
@secrettriangle odd, It should be using godep to set the GOPATH to the GoDeps dir in the main.
try doing go get github.com/mephux/envdb
and then making again.
dbkaplun commented
$ go get github.com/mephux/envdb
# github.com/mephux/envdb
stuff/src/github.com/mephux/envdb/http-handle.go:44: undefined: Asset
stuff/src/github.com/mephux/envdb/http.go:149: undefined: Asset
stuff/src/github.com/mephux/envdb/http.go:150: undefined: AssetDir
djcas9 commented
Oh, crap - forgot a dep in the readme. go get github.com/elazarl/go-bindata-assetfs
then go get envdb again. Sorry.
dbkaplun commented
Hmm... same exact error?
djcas9 commented
@secrettriangle try just doing godep go build -o bin/envdb
djcas9 commented
@secrettriangle let me know if that worked. Going to close for now.
dbkaplun commented
$ godep go build -o bin/envdb
go build _/home/dan/envdb: signal: killed
godep: go exit status 1
djcas9 commented
@secrettriangle yea, I think there is something wrong with your gopath. Trying to figure out why it's looking in _/home/dan