rubenv / sql-migrate

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

Cannot install #126

Closed bbkane closed 5 years ago

bbkane commented 5 years ago

The installation instructions from the README don't work for me. I'm new to Go, maybe I'm doing something wrong?

21:15:12 [bbkane@lin01 taggedmarks]
$ go get -v github.com/rubenv/sql-migrate/...
go: finding github.com/rubenv/sql-migrate/... latest
go: finding github.com/rubenv/sql-migrate latest
Fetching https://github.com?go-get=1
Parsing meta tags from https://github.com?go-get=1 (status code 200)
go get github.com/rubenv/sql-migrate/...: no matching versions for query "latest"
21:15:21 [bbkane@lin01 taggedmarks]
$ go version
go version go1.11.2 linux/amd64
rubenv commented 5 years ago

Just ran this in a clean Fedora 29 docker container:

[root@4a8e79cf17ad /]# go get -v github.com/rubenv/sql-migrate/...
github.com/rubenv/sql-migrate (download)
created GOPATH=/root/go; see 'go help gopath'
Fetching https://gopkg.in/gorp.v1?go-get=1
Parsing meta tags from https://gopkg.in/gorp.v1?go-get=1 (status code 200)
get "gopkg.in/gorp.v1": found meta tag get.metaImport{Prefix:"gopkg.in/gorp.v1", VCS:"git", RepoRoot:"https://gopkg.in/gorp.v1"} at https://gopkg.in/gorp.v1?go-get=1
gopkg.in/gorp.v1 (download)
github.com/denisenkom/go-mssqldb (download)
Fetching https://cloud.google.com/go/civil?go-get=1
Parsing meta tags from https://cloud.google.com/go/civil?go-get=1 (status code 200)
get "cloud.google.com/go/civil": found meta tag get.metaImport{Prefix:"cloud.google.com/go", VCS:"git", RepoRoot:"https://code.googlesource.com/gocloud"} at https://cloud.google.com/go/civil?go-get=1
get "cloud.google.com/go/civil": verifying non-authoritative meta tag
Fetching https://cloud.google.com/go?go-get=1
Parsing meta tags from https://cloud.google.com/go?go-get=1 (status code 200)
cloud.google.com/go (download)
Fetching https://golang.org/x/crypto/md4?go-get=1
Parsing meta tags from https://golang.org/x/crypto/md4?go-get=1 (status code 200)
get "golang.org/x/crypto/md4": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/md4?go-get=1
get "golang.org/x/crypto/md4": verifying non-authoritative meta tag
Fetching https://golang.org/x/crypto?go-get=1
Parsing meta tags from https://golang.org/x/crypto?go-get=1 (status code 200)
golang.org/x/crypto (download)
github.com/go-sql-driver/mysql (download)
github.com/lib/pq (download)
github.com/mattn/go-sqlite3 (download)
github.com/mitchellh/cli (download)
github.com/armon/go-radix (download)
github.com/bgentry/speakeasy (download)
github.com/fatih/color (download)
github.com/mattn/go-isatty (download)
github.com/posener/complete (download)
github.com/hashicorp/go-multierror (download)
github.com/hashicorp/errwrap (download)
github.com/olekukonko/tablewriter (download)
github.com/mattn/go-runewidth (download)
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 get.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)
github.com/lib/pq/oid
golang.org/x/crypto/md4
github.com/denisenkom/go-mssqldb/internal/cp
github.com/posener/complete/match
github.com/fatih/color/vendor/github.com/mattn/go-isatty
github.com/armon/go-radix
github.com/mattn/go-isatty
github.com/rubenv/sql-migrate/sqlparse
gopkg.in/gorp.v1
cloud.google.com/go/civil
github.com/bgentry/speakeasy
github.com/go-sql-driver/mysql
github.com/lib/pq
github.com/mattn/go-sqlite3
github.com/fatih/color/vendor/github.com/mattn/go-colorable
github.com/hashicorp/errwrap
github.com/mattn/go-runewidth
github.com/fatih/color
github.com/hashicorp/go-multierror
github.com/olekukonko/tablewriter
gopkg.in/yaml.v2
github.com/rubenv/sql-migrate
github.com/posener/complete/cmd/install
github.com/posener/complete/cmd
github.com/posener/complete
github.com/mitchellh/cli
github.com/denisenkom/go-mssqldb
github.com/rubenv/sql-migrate/sql-migrate

So it does seem to work.

[root@4a8e79cf17ad /]# go version
go version go1.11.2 linux/amd64

Please try again, might just be Github acting up or there's something wrong with your setup.

bbkane commented 5 years ago

Must be something wrong with my setup, because I'm getting the same error. Thank you for looking into it! I'll go ahead and close this, but I'll add a comment if I ever figure it out.

bbkane commented 5 years ago

Think it might be the issue mentioned in https://groups.google.com/forum/m/#!topic/golang-nuts/Gz_KNmdXbn0 . I'll wait for the next release then retry it.