Merge pull request #2916 from luan/build-script-git-fallback
Unexpected dependency in build scriptrelease-2.1
commit
511f323424
2
build
2
build
|
@ -11,7 +11,7 @@ ln -s ${PWD} $GOPATH/src/${REPO_PATH}
|
||||||
|
|
||||||
eval $(go env)
|
eval $(go env)
|
||||||
|
|
||||||
GIT_SHA=`git rev-parse --short HEAD`
|
GIT_SHA=`git rev-parse --short HEAD || echo "GitNotFound"`
|
||||||
|
|
||||||
# Static compilation is useful when etcd is run in a container
|
# Static compilation is useful when etcd is run in a container
|
||||||
CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags "-s -X ${REPO_PATH}/version.GitSHA ${GIT_SHA}" -o bin/etcd ${REPO_PATH}
|
CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags "-s -X ${REPO_PATH}/version.GitSHA ${GIT_SHA}" -o bin/etcd ${REPO_PATH}
|
||||||
|
|
Loading…
Reference in New Issue