Closed generalpiston closed 8 years ago
@abec, does it work better when replacing git clone ... srclib config
with:
go get github.com/leveros/leveros
cd $GOPATH/src/github.com/leveros/leveros
srclib config
?
@alexsaveliev following up from slack, it does indeed work. srclib-go needs GOPATH and the directory structures to be setup properly to work. Thanks for your help. I doubt this is a bug any more, but I'd rather someone else who knows more about Go chime in on this.
Yes, srclib-go assumes that the repository being processed is in the GOPATH
. You can look at how it sets up the environment in this Dockerfile for reference: https://sourcegraph.com/sourcegraph/sourcegraph@master/-/blob/services/worker/dockerfiles/Dockerfile.srclib-go
Parameters:
git clone https://github.com/leveros/leveros
cd leveros
and Modify Srclibtoolchain with the contents belowsrc config
and look out the output belowProblems:
src api units
output and notice how there is one unit that isn't vendorized ".". The dependencies from the other packages are completely missing. Example: api is a package that isn't listed. I've found it get's clobbered when writing to cache.Srclibtoolchain
Output
abbreviated src api units output