From c8e79d30aef31aee4a5d5aecb179d5541ccae423 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Steenis Date: Sat, 9 Mar 2019 15:12:15 +0100 Subject: [PATCH] Fix version for cli --- scripts/package-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package-cli b/scripts/package-cli index 83d0040f74..c7646dc25a 100755 --- a/scripts/package-cli +++ b/scripts/package-cli @@ -40,6 +40,6 @@ cp -f ./bin/hyperkube dist/artifacts/hyperkube${BIN_SUFFIX} CMD_NAME=dist/artifacts/k3s${BIN_SUFFIX} go generate -LDFLAGS="-X github.com/rancher/k3s/version.Version=$VERSION -w -s" +LDFLAGS="-X github.com/rancher/k3s/pkg/version.Version=$VERSION -X github.com/rancher/k3s/pkg/version.GitCommit=${COMMIT:0:8} -w -s" STATIC="-extldflags '-static'" CGO_ENABLED=0 go build -ldflags "$LDFLAGS $STATIC" -o ${CMD_NAME} ./cmd/k3s/main.go