owenthereal/gh

Cannot find packages when testing or building

weakish opened this issue · 2 comments

; ./script/test                                                                                                             ➜  /m/w/p/m/gh (master) ✗ 
main.go:4:2: cannot find package "github.com/jingweno/gh/commands" in any of:
        /usr/lib/go/src/pkg/github.com/jingweno/gh/commands (from $GOROOT)
        /media/weakish/pool/myrepo/gh/Godeps/_workspace/src/github.com/jingweno/gh/commands (from $GOPATH)
        /home/weakish/gocode/src/github.com/jingweno/gh/commands
main.go:5:2: cannot find package "github.com/jingweno/gh/github" in any of:
        /usr/lib/go/src/pkg/github.com/jingweno/gh/github (from $GOROOT)
        /media/weakish/pool/myrepo/gh/Godeps/_workspace/src/github.com/jingweno/gh/github (from $GOPATH)
        /home/weakish/gocode/src/github.com/jingweno/gh/github
cmd/cmd.go:5:2: cannot find package "github.com/jingweno/gh/utils" in any of:
        /usr/lib/go/src/pkg/github.com/jingweno/gh/utils (from $GOROOT)
        /media/weakish/pool/myrepo/gh/Godeps/_workspace/src/github.com/jingweno/gh/utils (from $GOPATH)
        /home/weakish/gocode/src/github.com/jingweno/gh/utils
commands/args.go:5:2: cannot find package "github.com/jingweno/gh/cmd" in any of:
        /usr/lib/go/src/pkg/github.com/jingweno/gh/cmd (from $GOROOT)
        /media/weakish/pool/myrepo/gh/Godeps/_workspace/src/github.com/jingweno/gh/cmd (from $GOPATH)
        /home/weakish/gocode/src/github.com/jingweno/gh/cmd
commands/ci_status.go:5:2: cannot find package "github.com/jingweno/gh/git" in any of:
        /usr/lib/go/src/pkg/github.com/jingweno/gh/git (from $GOROOT)
        /media/weakish/pool/myrepo/gh/Godeps/_workspace/src/github.com/jingweno/gh/git (from $GOPATH)
        /home/weakish/gocode/src/github.com/jingweno/gh/git
godep: go exit status 1

./script/build produces same errors.

It looks like #163

; go env                                                                                                                                         ➜  ~ 
GOARCH="386"
GOBIN=""
GOCHAR="8"
GOEXE=""
GOHOSTARCH="386"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/weakish/gocode"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_386"
CC="gcc"
GOGCCFLAGS="-fPIC -m32 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

Please run ./script/bootstrap first which will download godep and then run ./script/build or ./script/test.