Przeglądaj źródła

override version in goreleaser

zricethezav 4 lat temu
rodzic
commit
fd5d786538
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      .goreleaser.yml

+ 2 - 1
.goreleaser.yml

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