From 7b4333ae7783fe2dda42c9a7fa86f317bfd21277 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Tue, 30 Nov 2021 20:03:58 +0100 Subject: [PATCH] feat: smaller binaries --- src/.goreleaser.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/.goreleaser.yml b/src/.goreleaser.yml index 8983ba38..c4fdc19c 100644 --- a/src/.goreleaser.yml +++ b/src/.goreleaser.yml @@ -7,8 +7,10 @@ builds: - binary: "posh-{{ .Os }}-{{ .Arch }}" no_unique_dist_dir: true + flags: + - -a ldflags: - - -X main.Version={{.Version}} + - -s -w -X main.Version={{.Version}} goos: - linux - windows