Skip to content
Snippets Groups Projects
Commit 851be783 authored by Darren Shepherd's avatar Darren Shepherd Committed by Sheng Yang
Browse files

Fix VERSION symbol

parent 5e6b0605
Branches
Tags
No related merge requests found
...@@ -7,10 +7,9 @@ cd $(dirname $0)/.. ...@@ -7,10 +7,9 @@ cd $(dirname $0)/..
mkdir -p bin mkdir -p bin
if [ "$(uname)" = "Linux" ]; then if [ "$(uname)" = "Linux" ]; then
OTHER_LINKFLAGS="-extldflags -static -s" OTHER_LINKFLAGS="-extldflags -static -s -w"
fi fi
LINKFLAGS="-X github.com/rancher/local-path-provisioner.Version=$VERSION" LINKFLAGS="-X main.VERSION=$VERSION"
LINKFLAGS="-X github.com/rancher/local-path-provisioner.GitCommit=$COMMIT $LINKFLAGS"
CGO_ENABLED=0 go build -ldflags "$LINKFLAGS $OTHER_LINKFLAGS" -o bin/local-path-provisioner CGO_ENABLED=0 go build -ldflags "$LINKFLAGS $OTHER_LINKFLAGS" -o bin/local-path-provisioner
if [ "$CROSS" = "true" ] && [ "$ARCH" = "amd64" ]; then if [ "$CROSS" = "true" ] && [ "$ARCH" = "amd64" ]; then
GOOS=darwin go build -ldflags "$LINKFLAGS" -o bin/local-path-provisioner-darwin GOOS=darwin go build -ldflags "$LINKFLAGS" -o bin/local-path-provisioner-darwin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment