djcas9/envdb

can't load package: package _/home/dan/envdb: cannot find package "_/home/dan/envdb" in any of:

dbkaplun opened this issue · 8 comments

$ 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

@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.

$ 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

Oh, crap - forgot a dep in the readme. go get github.com/elazarl/go-bindata-assetfs then go get envdb again. Sorry.

Hmm... same exact error?

@secrettriangle try just doing godep go build -o bin/envdb

@secrettriangle let me know if that worked. Going to close for now.

$ godep go build -o bin/envdb
go build _/home/dan/envdb: signal: killed
godep: go exit status 1

@secrettriangle yea, I think there is something wrong with your gopath. Trying to figure out why it's looking in _/home/dan