sourcegraph / srclib

srclib is a polyglot code analysis library, built for hackability. It consists of language analysis toolchains (currently for Go and Java, with Python, JavaScript, and Ruby in beta) with a common output format, and a CLI tool for running the analysis.
https://srclib.org
Other
942 stars 62 forks source link

Toolchain installation failing #305

Closed macsj200 closed 8 years ago

macsj200 commented 8 years ago

Hello all, when I follow the instructions on srclib install, it fails at srclib toolchain install go ruby javascript python with

Go (sourcegraph.com/sourcegraph/srclib-go) ====================================
Downloading Go toolchain
Cloning into 'srclib-go'...
remote: Counting objects: 6091, done.
remote: Total 6091 (delta 0), reused 0 (delta 0), pack-reused 6091
Receiving objects: 100% (6091/6091), 2.94 MiB | 611.00 KiB/s, done.
Resolving deltas: 100% (2324/2324), done.
Checking connectivity... done.
mkdir -p /Users/maxjohansen/.srclib/sourcegraph.com/sourcegraph
ln -s /Users/maxjohansen/goworkspace/src/sourcegraph.com/sourcegraph/srclib-go /Users/maxjohansen/.srclib/sourcegraph.com/sourcegraph/srclib-go
Building Go toolchain program
Running [make] in /Users/maxjohansen/goworkspace/src/sourcegraph.com/sourcegraph/srclib-go
go get github.com/kardianos/govendor
govendor sync
make: govendor: No such file or directory
make: *** [govendor] Error 1
failed to install/upgrade Go (sourcegraph.com/sourcegraph/srclib-go) toolchain: command ["make"] failed: exit status 2

FAILED: ./srclib toolchain install go (failed to install/upgrade Go (sourcegraph.com/sourcegraph/srclib-go) toolchain: command ["make"] failed: exit status 2
)

Do you have any suggestions as how to remedy this? It seems to be an issue with govendor?

macsj200 commented 8 years ago

I fixed this by installing govendor and adding the binary to my path. Maybe we should add some documentation to indicate this dependency, as this is non-obvious to those not familiar with the go ecosystem.