Skip to content

Commit

Permalink
make: update VERSION_TAG to a globally-consistent build-input identifier
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nehhen authored and ellemouton committed Oct 14, 2024
1 parent 6a0d9b8 commit 66d2bd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion make/release_flags.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VERSION_TAG = $(shell git describe --tags)
# Create a globally-consistent, build-input identifier.
VERSION_TAG = $(shell git describe --abbrev=40 --broken --tags --always)
VERSION_CHECK = @$(call print, "Building master with date version tag")

BUILD_SYSTEM = darwin-amd64 \
Expand Down

0 comments on commit 66d2bd1

Please sign in to comment.