You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ go install -tags 'postgres' -o $GOPATH/bin/migrate github.com/golang-migrate/migrate/v4/cmd/migrate@$TAG
45
48
```
46
49
47
50
#### Unversioned
48
51
49
52
```bash
53
+
$ # Go 1.15 and below
50
54
$ go get -tags 'postgres' -u github.com/golang-migrate/migrate/cmd/migrate
55
+
$ # Go 1.16+
56
+
$ go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
51
57
```
52
58
53
-
[Make sure](https://github.com/golang-migrate/migrate/pull/257#issuecomment-705249902) you're not installing the `migrate` CLI from a module. e.g. there should not be any `go.mod` files in your current directory or any directory from your current one to the root
54
-
55
59
#### Notes
56
60
57
61
1. Requires a version of Go that [supports modules](https://golang.org/cmd/go/#hdr-Preliminary_module_support). e.g. Go 1.11+
@@ -62,6 +66,7 @@ correspond to the names of the sub-packages underneath the
62
66
[`database`](../database) package.
63
67
1. Similarly to the database build tags, if you need to support other sources, use the appropriate build tag(s).
64
68
1. Support for build constraints will be removed in the future: https://github.com/golang-migrate/migrate/issues/60
69
+
1. For versions of Go 1.15 and lower, [make sure](https://github.com/golang-migrate/migrate/pull/257#issuecomment-705249902) you're not installing the `migrate` CLI from a module. e.g. there should not be any `go.mod` files in your current directory or any directory from your current directory to the root
0 commit comments