Commit 6696d79d82

6696d79d82d66fc8cc0fe3eb020ca9455a64c42b

parent: 72186138a6

Verified · cmc ci/build: success ci/lint: success ci/test: success

cmc <hello@cleberg.net> · 2026-09-11 16:18 UTC

Build without VCS stamping

Inside the release container the checkout belongs to another uid, git
refuses it, and go build fails obtaining VCS status. The version is
stamped by ldflags, so VCS metadata is not needed.

Layout: unified · split

Makefile +1 −1
@@ -3,7 +3,7 @@
3 3
4VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null | sed 's/^v//') 4VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null | sed 's/^v//')
5LDFLAGS = -s -w -X main.version=$(VERSION) 5LDFLAGS = -s -w -X main.version=$(VERSION)
6GOFLAGS = -trimpath 6GOFLAGS = -trimpath -buildvcs=false
7LINT = github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.13.2 7LINT = github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.13.2
8 8
9# os/arch pairs packaged by `make dist`. 9# os/arch pairs packaged by `make dist`.