mirror of
https://github.com/k3s-io/k3s.git
synced 2026-05-28 04:34:19 -04:00
Fix version for cli
This commit is contained in:
parent
2771ae1ba9
commit
c8e79d30ae
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue