-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Trouble installing cli for postgres #67
Comments
It looks like the problem I am having is the "// +build go1.9" in the postgres.go file. Maybe document that postgres requires go 1.9? |
Good sleuthing! I'm not sure if it's worth documenting the build constraints as the docs will probably diverge from from the code. Also, we're planning to remove the build constraints, so there won't be anything to document in the future: #60 I recommend you use the latest version of Go, since only the latest 2 major versions of Go are supported by Google (e.g. gets security fixes). https://golang.org/doc/devel/release.html#policy |
Also, migrate is using dep to manage dependencies. I'd use dep (or vgo) to manage your dependencies instead of The docs mentioning |
Thanks, makes sense. I've upgraded to go 1.9 and now it works. Also, noticed another issue opened today that appears to be the same problem. |
- Addresses: #67 - Add badge for supported Go versions - Suggest dep for dependency management
@dhui I'm running in kind of the same issue. As I'm use currently a Dockerfile |
@maier-stefan Your issue seems unrelated to this one. Please open a new issue with more information (e.g. your full Dockerfile and the error message you're getting) and we'll proceed from there. |
- Addresses: golang-migrate/migrate#67 - Add badge for supported Go versions - Suggest dep for dependency management
I am trying to try out the migrate CLI, and am running into a problem with the installation steps in the README. I run these commands:
$ go get -u -d github.com/golang-migrate/migrate/cli github.com/lib/pq
$ go build -tags 'postgres' -o /usr/local/bin/migrate github.com/golang-migrate/migrate/cli
go build github.com/golang-migrate/migrate/database/postgres: no buildable Go source files in {GOPATH}/src/github.com/golang-migrate/migrate/database/postgres
If I run the go build with a tag other than postgres it works.
The text was updated successfully, but these errors were encountered: