Browse Source

override version in goreleaser

zricethezav 4 năm trước cách đây
mục cha
commit
fd5d786538
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      .goreleaser.yml

+ 2 - 1
.goreleaser.yml

@@ -9,7 +9,8 @@ builds:
       - windows
     goarch:
       - amd64
-      - arm64
+    ldflags:
+      - -s -w -X cmd/version.Version={{.Version}}
 archives:
   - builds: [gitleaks]
     format_overrides: