Please answer these questions before submitting your issue. Thanks!
I have two GOPATH: pA and pB
In pA I have a project called Foo which looks like:
And the pB:
in the pA/src/foo/main.go:
And in pB/src/baz/qq/qq.go:
When I cd pA/src/foo && go build there was an error which said it couldn't find the package github.com/bar in $GOROOT,$GOPATH.But the fact is that it laid in the vendor directory.
cd pA/src/foo && go build
go build successfully
go build error
This is working as expected.
For questions see https://github.com/golang/go/wiki/Questions .