Skip to content

Commit 62ff8e3

Browse files
Merge pull request #354 from vrutkovs/nonsemver-override
Bug 1826349: hack/build-go: Use OS_GIT_VERSION if available
2 parents 2b84929 + 17d47a0 commit 62ff8e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hack/build-go.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ GOARCH=${GOACH:-${GOHOSTARCH}}
1414
# Go to the root of the repo
1515
cd "$(git rev-parse --show-cdup)"
1616

17-
if [ -z ${VERSION_OVERRIDE+a} ]; then
17+
VERSION_OVERRIDE=${VERSION_OVERRIDE:-${OS_GIT_VERSION:-}}
18+
if [ -z "${VERSION_OVERRIDE:-}" ]; then
1819
echo "Using version from git..."
1920
VERSION_OVERRIDE=$(git describe --abbrev=8 --dirty --always)
2021
fi

0 commit comments

Comments
 (0)