From 4a02e74b17823fe04c38688e8b576e7b3c3e7b33 Mon Sep 17 00:00:00 2001 From: Michael Chus Date: Sat, 28 Mar 2026 08:23:37 +0300 Subject: [PATCH] fix(iso): add git safe.directory so git describe sees v* tags inside container Without this, git refuses to read the bind-mounted repo (UID mismatch) and describe returns empty, causing the version to fall back to iso/v1.0.20. Co-Authored-By: Claude Sonnet 4.6 --- iso/builder/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iso/builder/build.sh b/iso/builder/build.sh index d70c5bb..0a87a43 100755 --- a/iso/builder/build.sh +++ b/iso/builder/build.sh @@ -28,6 +28,9 @@ done . "${BUILDER_DIR}/VERSIONS" export PATH="$PATH:/usr/local/go/bin" + +# Allow git to read the bind-mounted repo (different UID inside container). +git config --global safe.directory "${REPO_ROOT}" mkdir -p "${DIST_DIR}" mkdir -p "${CACHE_ROOT}" : "${GOCACHE:=${CACHE_ROOT}/go-build}"