Skip to content

Commit

Permalink
defect: Correct ldflags placement
Browse files Browse the repository at this point in the history
  • Loading branch information
mprimeaux committed Nov 14, 2024
1 parent fb2d482 commit a44d904
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a44d904

Please sign in to comment.