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
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,9 @@ cd $(dirname $0)/..
mkdir -p bin
if [ "$(uname)" = "Linux" ]; then
OTHER_LINKFLAGS="-extldflags -static -s"
OTHER_LINKFLAGS="-extldflags -static -s -w"
fi
LINKFLAGS="-X github.com/rancher/local-path-provisioner.Version=$VERSION"
LINKFLAGS="-X github.com/rancher/local-path-provisioner.GitCommit=$COMMIT $LINKFLAGS"
LINKFLAGS="-X main.VERSION=$VERSION"
CGO_ENABLED=0 go build -ldflags "$LINKFLAGS $OTHER_LINKFLAGS" -o bin/local-path-provisioner
if [ "$CROSS" = "true" ] && [ "$ARCH" = "amd64" ]; then
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.
Finish editing this message first!
Please register or to comment