From a44d904513e8c61a28fa746174ab6f9c33e811ba Mon Sep 17 00:00:00 2001 From: Michael Primeaux Date: Thu, 14 Nov 2024 11:20:28 -0600 Subject: [PATCH] defect: Correct ldflags placement --- .goreleaser.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 81557ab..4e912a4 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -80,6 +80,7 @@ changelog: builds: - main: main.go binary: nanoid + ldflags: -s -w -X github.com/sixafter/nanoid-cli/cmd/version.version={{ .Version }} github.com/sixafter/nanoid-cli/cmd/version.gitCommitID={{ .Env.X_BUILD_COMMIT }} goos: - linux - darwin @@ -89,7 +90,6 @@ builds: - arm64 flags: - -trimpath - - -ldflags=-s -w -X github.com/sixafter/nanoid-cli/cmd/version.version={{ .Version }} github.com/sixafter/nanoid-cli/cmd/version.gitCommitID={{ .Env.X_BUILD_COMMIT }} archives: - id: tar format: tar.gz @@ -110,7 +110,7 @@ release: footer: | **Full Changelog**: [https://github.com/sixafter/nanoid-cli/tree/main/CHANGELOG/CHANGELOG-1.x](https://github.com/sixafter/nanoid-cli/tree/main/CHANGELOG/CHANGELOG-1.x.md) -# .goreleaser.yaml +# Ref: https://goreleaser.com/customization/homebrew/ brews: # Name of the recipe - name: nanoid