🐛 fix passing LDFLAGS across build stages

Signed-off-by: Ashish Amarnath <ashisham@vmware.com>
pull/2853/head
Ashish Amarnath 2020-08-21 14:14:29 -07:00
parent 97c14e34be
commit 20ac603747
2 changed files with 2 additions and 3 deletions

View File

@ -22,9 +22,7 @@ ARG GIT_TREE_STATE
ENV CGO_ENABLED=0 \
GO111MODULE=on \
GOPROXY=${GOPROXY} \
LDFLAGS="-X ${PKG}/pkg/buildinfo.Version=${VERSION}" \
LDFLAGS="${LDFLAGS} -X ${PKG}/pkg/buildinfo.GitSHA=${GIT_SHA}" \
LDFLAGS="${LDFLAGS} -X ${PKG}/pkg/buildinfo.GitTreeState=${GIT_TREE_STATE}"
LDFLAGS="-X ${PKG}/pkg/buildinfo.Version=${VERSION} -X ${PKG}/pkg/buildinfo.GitSHA=${GIT_SHA} -X ${PKG}/pkg/buildinfo.GitTreeState=${GIT_TREE_STATE}"
WORKDIR /go/src/github.com/vmware-tanzu/velero

View File

@ -0,0 +1 @@
🐛 fix passing LDFLAGS across build stages