From a0009b1a2662763c798987071281306c8ce2fb82 Mon Sep 17 00:00:00 2001 From: Eljees <3.14hell@gmail.com> Date: Fri, 7 Aug 2026 10:36:47 +0000 Subject: [PATCH] fix: stamp release binaries with version, commit, date and builder --- .goreleaser.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index ae952d40a..5a1cbfa7f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -9,7 +9,12 @@ builds: - env: - CGO_ENABLED=0 - - BUILDER=GoReleaser + ldflags: + - -s -w + - -X github.com/mgechev/revive/cli.version={{.Version}} + - -X github.com/mgechev/revive/cli.commit={{.Commit}} + - -X github.com/mgechev/revive/cli.date={{.Date}} + - -X github.com/mgechev/revive/cli.builtBy=GoReleaser goos: - linux - darwin