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

srclib build failing #167

Closed xizhao closed 9 years ago

xizhao commented 9 years ago
/usr/local/go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:666: syntax error: unexpected range, expecting {
/usr/local/go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:676: syntax error: unexpected semicolon or newline, expecting )
/usr/local/go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:678: syntax error: unexpected ), expecting semicolon or newline or }
/usr/local/go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:682: non-declaration statement outside function body
/usr/local/go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:683: non-declaration statement outside function body
/usr/local/go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:684: non-declaration statement outside function body
/usr/local/go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:685: non-declaration statement outside function body
/usr/local/go/src/sourcegraph.com/sourcegraph/srclib/store/fs_store.go:686: syntax error: unexpected }

cmd: The command '/bin/sh -c go get -u -v sourcegraph.com/sourcegraph/srclib/cmd/src' returned a non-zero code: 2

Fails both on OSX and inside the boot2docker vm.

xizhao commented 9 years ago

I'm also on go 1.3. Testing to see if that's the issue.

xizhao commented 9 years ago

Yup! Upgrading to 1.4 fixed it.