niemeyer / gopkg

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

Always returning HTTP 301 #51

Closed majimboo closed 7 years ago

majimboo commented 7 years ago

Doing go get gopkg.in/yaml.v2 on my machine or any package from gopkg.in fails with the error:

$ go get -v gopkg.in/yaml.v2
Fetching https://gopkg.in/yaml.v2?go-get=1
Parsing meta tags from https://gopkg.in/yaml.v2?go-get=1 (status code 200)
get "gopkg.in/yaml.v2": found meta tag main.metaImport{Prefix:"gopkg.in/yaml.v2", VCS:"git", RepoRoot:"https://gopkg.in/yaml.v2"} at https://gopkg.in/yaml.v2?go-get=1
gopkg.in/yaml.v2 (download)
# cd .; git clone https://gopkg.in/yaml.v2 C:\gocode\src\gopkg.in\yaml.v2
Cloning into 'C:\gocode\src\gopkg.in\yaml.v2'...
fatal: The remote end hung up unexpectedly
error: RPC failed; HTTP 301 curl 22 The requested URL returned error: 301
package gopkg.in/yaml.v2: exit status 128

Does it have to do with the location of my machine? Singapore.

majimboo commented 7 years ago

I was using Git Bash, and changing to Powershell fixed the problem. It seems like it was some kind of issue with the terminal.