diff --git a/cli/README.md b/cli/README.md index a2db7e7..831068b 100644 --- a/cli/README.md +++ b/cli/README.md @@ -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: