From e22af855f04eb25fd48eb922605da4cd2860df7f Mon Sep 17 00:00:00 2001 From: Denis Khoshaba Date: Sun, 26 May 2024 21:08:21 +1000 Subject: [PATCH] fix ldflags for gorelease (#26) --- .gitignore | 2 ++ .goreleaser.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 92ffddb..b255372 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ go.work /bin + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b922e07..eb2511f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -15,6 +15,8 @@ builds: - arm64 flags: - -mod=vendor + ldflags: + - -s -w - -X github.com/songstitch/anchor/cmd.version={{.Env.VERSION}} - -X github.com/songstitch/anchor/cmd.commit={{.Env.COMMIT}} universal_binaries: