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

Download of Go toolchain fails because of redirects #250

Closed bkabrda closed 8 years ago

bkabrda commented 8 years ago

Downloading Go toolchain has starting failing for me recently:

Downloading Go toolchain
Cloning into 'srclib-go'...
fatal: repository 'https://sourcegraph.com/sourcegraph/srclib-go/' not found
failed to install/upgrade Go (sourcegraph.com/sourcegraph/srclib-go) toolchain: exit status 128

The problem is that git client can't handle redirects, but the above url redirects:

$ curl -I sourcegraph.com/sourcegraph/srclib-go
HTTP/1.1 301 Moved Permanently

The redirect target is https://sourcegraph.com/github.com/sourcegraph/srclib. Everything was working several days ago, so maybe you just setup the redirects recently? Or am I doing something wrong? Thanks

dmitshur commented 8 years ago

Thanks for reporting this. It's a configuration change we've done our side recently that caused this, we'll work on fixing it. /cc @pararthshah

The redirect target should be https://sourcegraph.com/github.com/sourcegraph/srclib-go and that would work as a git clone target for now.

guilhermebr commented 8 years ago

:+1:

pararthshah commented 8 years ago

This is fixed by commit f37ecd8, as now all toolchains are fetched directly from GitHub.