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

Cannot install migrate using glide #180

Closed
fabianTMC opened this issue Feb 26, 2019 · 2 comments
Closed

Cannot install migrate using glide #180

fabianTMC opened this issue Feb 26, 2019 · 2 comments

Comments

@fabianTMC
Copy link

Describe the Bug
Cannot install migrate using glide

Steps to Reproduce
Steps to reproduce the behavior:

  1. Run glide get github.com/golang-migrate/migrate

Go Version
go version go1.11.2 linux/amd64

Stacktrace

[INFO]  Resolving imports
[INFO]  --> Detected semantic version. Setting version for github.com/golang-migrate/migrate to v4.2.5
[ERROR] Error scanning github.com/golang-migrate/migrate/v4/database: cannot find package "." in:
        /home/fabian/.glide/cache/src/https-github.com-golang-migrate-migrate/v4/database
[ERROR] Error scanning github.com/golang-migrate/migrate/v4/source: cannot find package "." in:
        /home/fabian/.glide/cache/src/https-github.com-golang-migrate-migrate/v4/source
[ERROR] Error scanning github.com/golang-migrate/migrate/v4: cannot find package "." in:
        /home/fabian/.glide/cache/src/https-github.com-golang-migrate-migrate/v4
[INFO]  --> Fetching updates for gopkg.in/yaml.v2
[ERROR] Failed to retrieve a list of dependencies: Error resolving imports
@dhui
Copy link
Member

dhui commented Feb 26, 2019

See: https://github.com/golang-migrate/migrate#supported-major-versions

Since you're using Go 1.11+ and migrate v4, I'd use modules if possible.
dep is used to manage dependencies for migrate v3 and Go 1.10.x. However, since Go 1.12 was just released and we only support supported version of Go, Go 1.10.x support will be dropped soon. e.g. won't be backporting security fixes.

You can try using migrate v3 with glide, but migrate won't officially support that.
My guess is that you're hitting an issue similar to: #103

@dhui
Copy link
Member

dhui commented Mar 23, 2019

Closing due to lack of response

@dhui dhui closed this as completed Mar 23, 2019
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

2 participants