build_dist: fix after version refactor.

This commit is contained in:
David Anderson 2020-11-03 14:39:45 -08:00
parent 28f6552646
commit 39bbb86b09

View File

@ -9,12 +9,8 @@
# this script, or executing equivalent commands in your # this script, or executing equivalent commands in your
# distro-specific build system. # distro-specific build system.
set -euo pipefail set -eu
describe=$(./version/describe.sh) eval $(./version/version.sh)
commit=$(git rev-parse --verify --quiet HEAD)
long=$(./version/mkversion.sh long "$describe" "") exec go build -tags xversion -ldflags "-X tailscale.com/version.Long=${VERSION_LONG} -X tailscale.com/version.Short=${VERSION_SHORT} -X tailscale.com/version.GitCommit=${VERSION_GIT_HASH}" "$@"
short=$(./version/mkversion.sh short "$describe" "")
exec go build -tags xversion -ldflags "-X tailscale.com/version.Long=${long} -X tailscale.com/version.Short=${short} -X tailscale.com/version.GitCommit=${commit}" "$@"