From 66d2bd1bdade3cacf1df263799bf4569a97af3ec Mon Sep 17 00:00:00 2001 From: Name Date: Wed, 9 Oct 2024 10:16:38 +0000 Subject: [PATCH] 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. --- make/release_flags.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make/release_flags.mk b/make/release_flags.mk index a2ad803dd..c0a369cd2 100644 --- a/make/release_flags.mk +++ b/make/release_flags.mk @@ -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 \