mirror of https://github.com/status-im/migrate.git
Use `git describe --tags` to set the version number when building the CLI
This commit is contained in:
parent
323427e951
commit
f38fe38d45
|
@ -30,7 +30,7 @@ $ apt-get install -y migrate
|
|||
```
|
||||
$ go get -u -d github.com/golang-migrate/migrate/cli
|
||||
$ cd $GOPATH/src/github.com/golang-migrate/migrate/cli
|
||||
$ go build -tags 'postgres' -o /usr/local/bin/migrate github.com/golang-migrate/migrate/cli
|
||||
$ go build -tags 'postgres' -ldflags="-X main.Version=$(git describe --tags)" -o /usr/local/bin/migrate github.com/golang-migrate/migrate/cli
|
||||
```
|
||||
|
||||
##### Notes:
|
||||
|
|
Loading…
Reference in New Issue