Skip to content

Commit 66d2bd1

Browse files
nehhenellemouton
authored andcommitted
make: update VERSION_TAG to a globally-consistent build-input identifier
Additional flags produce: * Globally consistent commitment hash length, regardless of gitconfig * `--broken` to create fail-safe tag indicating a dirty or corrupted work tree * `--always` to generate a tag, even if no tags are reachable from the current commit.
1 parent 6a0d9b8 commit 66d2bd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

make/release_flags.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
VERSION_TAG = $(shell git describe --tags)
1+
# Create a globally-consistent, build-input identifier.
2+
VERSION_TAG = $(shell git describe --abbrev=40 --broken --tags --always)
23
VERSION_CHECK = @$(call print, "Building master with date version tag")
34

45
BUILD_SYSTEM = darwin-amd64 \

0 commit comments

Comments
 (0)