From d60c0943c070d40043fc9f5c1320c3d85b4888b2 Mon Sep 17 00:00:00 2001 From: alliasgher Date: Thu, 7 May 2026 14:14:48 +0500 Subject: [PATCH] Strip Go symbol table from release binaries Adds -s to the goreleaser ldflags alongside the existing -w. Per maintainer testing on #2109, building with -s -w shrinks the tkn binary from ~207MB to ~147MB (~30%) compared to the current -w-only default. Signed-off-by: alliasgher --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index e963ce6dd4..8f2805ed36 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -16,7 +16,7 @@ builds: - s390x - ppc64le ldflags: - - -w -X github.com/tektoncd/cli/pkg/cmd/version.clientVersion={{.Version}} + - -s -w -X github.com/tektoncd/cli/pkg/cmd/version.clientVersion={{.Version}} archives: - name_template: >- {{- .Binary }}_