sqs / goreturns

A gofmt/goimports-like tool for Go programmers that fills in Go return statements with zero values to match the func return types
Other
530 stars 55 forks source link

Install doesn't work #23

Closed knadh closed 8 years ago

knadh commented 8 years ago

go version go1.6.2 linux/amd64

$ go get github.com/sqs/goreturns
package sourcegraph.com/sqs/goreturns/returns: unrecognized import path "sourcegraph.com/sqs/goreturns/returns" (parse https://sourcegraph.com/sqs/goreturns/returns?go-get=1: no go-import meta tags)

The entire https://sourcegraph.com/sqs* tree returns a 404.

PS: Looks like it's the same issue as https://github.com/sqs/goreturns/issues/21, but unable to figure out how the fix works

sqs commented 8 years ago

This could be an ephemeral network failure. Do you see this output?

$ curl 'https://sourcegraph.com/sqs/goreturns/returns?go-get=1'
<html><head><meta name="go-import" content="sourcegraph.com/sqs/goreturns git https://github.com/sqs/goreturns"></head><body></body></html>

If so, please try running the go get command again.

knadh commented 8 years ago

@sqs Ha, Cloudflare's captcha that just doesn't go away.

I cloned the library and changed the import from sourcegraph to the github.com repo to make it work.

the-shank commented 7 years ago

@knadh thanks for the solution, I was going crazy with the capcha!

alwindoss commented 6 years ago

Do go get -u -v github.com/sqs/goreturns this should work