Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install error #176

Open
GitSumito opened this issue May 12, 2020 · 5 comments
Open

install error #176

GitSumito opened this issue May 12, 2020 · 5 comments

Comments

@GitSumito
Copy link

When I try to install this tool, I encounter below error.

% go get -v github.com/rubenv/sql-migrate/...
github.com/hashicorp/go-multierror
github.com/mattn/go-sqlite3
# github.com/hashicorp/go-multierror
../../../github.com/hashicorp/go-multierror/multierror.go:112:9: undefined: errors.As
../../../github.com/hashicorp/go-multierror/multierror.go:117:9: undefined: errors.Is

my environmet is this

go version go1.11 darwin/amd64

Does anyone have tips to solve this problem?

@ydanilin
Copy link

Take the latest version of Go.
I tried with 1.10.3 and 1.11 - exactly this error .
With 1.14.3 it installs successfully.

@yihau
Copy link

yihau commented Jun 2, 2020

The go-mutierror use the errors.As and errors.Is
I think your go version should be bigger than 1.13

@hongminhcbg
Copy link

hongminhcbg commented Jul 19, 2020

@ydanilin I use go go1.14.4 linux/amd64 but i can't install success
my version:
go version go1.14.4 linux/amd64

my error:

go: downloading github.com/rubenv/sql-migrate v0.0.0-20180704111356-ba2c6a7295c59448dbc195cef2f41df5163b3892
go: github.com/rubenv/sql-migrate@v0.0.0-20180704111356-ba2c6a7295c59448dbc195cef2f41df5163b3892: invalid pseudo-version: revision is longer than canonical (ba2c6a7295c5)

@dtlares
Copy link

dtlares commented Aug 4, 2020

I had the same error, but finally it is working with go version go1.13.3 linux/amd64.

@alhamsya
Copy link

alhamsya commented Jan 3, 2022

you can try :
go get -v github.com/rubenv/sql-migrate/...@f842348935589e4563be545226d465178bd439cf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants