We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c4931d commit 17d47a0Copy full SHA for 17d47a0
hack/build-go.sh
@@ -14,7 +14,8 @@ GOARCH=${GOACH:-${GOHOSTARCH}}
14
# Go to the root of the repo
15
cd "$(git rev-parse --show-cdup)"
16
17
-if [ -z ${VERSION_OVERRIDE+a} ]; then
+VERSION_OVERRIDE=${VERSION_OVERRIDE:-${OS_GIT_VERSION:-}}
18
+if [ -z "${VERSION_OVERRIDE:-}" ]; then
19
echo "Using version from git..."
20
VERSION_OVERRIDE=$(git describe --abbrev=8 --dirty --always)
21
fi
0 commit comments