rubenv / sql-migrate

SQL schema migration tool for Go.
MIT License
3.23k stars 280 forks source link

Installation times out because of go-yaml #30

Closed rkulla closed 8 years ago

rkulla commented 8 years ago

This isn't a sql-migrate issue per se, but it may be worth mentioning in the documentation.

I went to install sql-migrate per in the instructions:

$ go get github.com/rubenv/sql-migrate/...

but got the following errors:

# cd .; git clone https://gopkg.in/gorp.v1 /tmp/gopath-godep/src/gopkg.in/gorp.v1
Cloning into '/tmp/gopath-godep/src/gopkg.in/gorp.v1'...
fatal: unable to access 'https://gopkg.in/gorp.v1/': Failed to connect to gopkg.in port 443: Operation timed out
package gopkg.in/gorp.v1: exit status 128
# cd .; git clone https://gopkg.in/yaml.v1 /tmp/gopath-godep/src/gopkg.in/yaml.v1
Cloning into '/tmp/gopath-godep/src/gopkg.in/yaml.v1'...
fatal: unable to access 'https://gopkg.in/yaml.v1/': Failed to connect to gopkg.in port 443: Operation timed out 
package gopkg.in/yaml.v1: exit status 128

I was able to resolve it on my machine by doing:

$ git clone --branch v1 https://github.com/go-yaml/yaml $GOPATH/src/gopkg.in/yaml.v1
$ go get github.com/rubenv/sql-migrate/...

Now it installed. However, that means that gorp all of a sudden decided to stop timing out. So some people may need to grab gorp manually git clone --branch v1 https://github.com/go-gorp/gorp $GOPATH/src/gopkg.in/gorp.v1. So reproducing this error might be difficult, depending on why it's timing out.

rkulla commented 8 years ago

Upon a little further investigation, this seems to mainly be a general issue with gopkg.in and nothing to do with sql-migrate's choice of dependencies. Some say it's an outdated git issue but i'm running git version 2.2.1. You can probbly disregard this issue.