Skip to content

Commit 960f517

Browse files
alliasghertekton-robot
authored andcommitted
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 <alliasgher123@gmail.com>
1 parent 87c35de commit 960f517

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ builds:
1616
- s390x
1717
- ppc64le
1818
ldflags:
19-
- -w -X github.com/tektoncd/cli/pkg/cmd/version.clientVersion={{.Version}}
19+
- -s -w -X github.com/tektoncd/cli/pkg/cmd/version.clientVersion={{.Version}}
2020
archives:
2121
- name_template: >-
2222
{{- .Binary }}_

0 commit comments

Comments
 (0)