summaryrefslogtreecommitdiffstats
path: root/.goreleaser.yml
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-04-23 17:24:50 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-04-23 17:24:50 +0900
commit207deeadba2721435a21e0f68c61e522eedef26c (patch)
tree57119c4cdebb5e496efbd1cc7fa0964b683a1388 /.goreleaser.yml
parentd18d92f925f791271b095df968d290ced05d065a (diff)
Add -trimpath to build command
Diffstat (limited to '.goreleaser.yml')
-rw-r--r--.goreleaser.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
index 1ac56108..86e821f0 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -12,6 +12,8 @@ builds:
- darwin
goarch:
- amd64
+ flags:
+ - -trimpath
ldflags:
- "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
hooks:
@@ -36,6 +38,8 @@ builds:
- darwin
goarch:
- arm64
+ flags:
+ - -trimpath
ldflags:
- "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
hooks:
@@ -71,6 +75,8 @@ builds:
- 5
- 6
- 7
+ flags:
+ - -trimpath
ldflags:
- "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
ignore: