niemeyer / gopkg

Source code for the gopkg.in service.
Other
539 stars 85 forks source link

go get fails with status 301 #52

Closed akupila closed 7 years ago

akupila commented 7 years ago

run:

$ go get gopkg.in/yaml.v2

result:

# cd .; git clone https://gopkg.in/yaml.v2 /Users/akupila/go/src/gopkg.in/yaml.v2
Cloning into '/Users/akupila/go/src/gopkg.in/yaml.v2'...
error: RPC failed; HTTP 301 curl 22 The requested URL returned error: 301
fatal: The remote end hung up unexpectedly
package gopkg.in/yaml.v2: exit status 128

I suspect this could be related to the recently added Let's Encrypt support. I'm not very familiar with how git clone works under the hood but some quick googling and found https://github.com/gitlabhq/gitlabhq/issues/3892

akupila commented 7 years ago

Sorry, looks like a duplicate of https://github.com/niemeyer/gopkg/issues/50

After git config --global http.https://gopkg.in.followRedirects true this works fine

niemeyer commented 7 years ago

No need to change the configuration anymore. We've changed gopkg.in itself to support the new git quirks.