From f9c14c338bb183ce298a9f4e21a4da9d1bbffc1e Mon Sep 17 00:00:00 2001 From: TheDen Date: Sun, 26 May 2024 21:02:32 +1000 Subject: [PATCH] fix ldflags for gorelease --- .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: