From 794e1d404dba32899a45dde46901ab94458991d6 Mon Sep 17 00:00:00 2001 From: Tore Martin Hagen Date: Thu, 4 Jun 2026 10:55:01 +0200 Subject: [PATCH] fix: use git short sha as version metadata for unreleased builds Non-released builds reported a user agent of "Kosli/dev+unreleased". Use the git short sha instead so dev builds identify their commit, e.g. "Kosli/dev+2c570769". Tagged releases are unaffected. Co-Authored-By: Claude Opus 4.8 (1M context) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1f7993d0e..808e95316 100644 --- a/Makefile +++ b/Makefile @@ -30,8 +30,8 @@ ifneq ($(BINARY_VERSION),) LDFLAGS += -X github.com/kosli-dev/cli/internal/version.version=${BINARY_VERSION} endif -VERSION_METADATA = unreleased -# Clear the "unreleased" string in BuildMetadata +VERSION_METADATA = $(GIT_SHA) +# Clear the short-sha BuildMetadata for tagged releases ifneq ($(GIT_TAG),) VERSION_METADATA = endif