From 852ecb09f31c0067cafb2901cfd77b02de51955f Mon Sep 17 00:00:00 2001 From: Scott Winkler Date: Thu, 4 Jan 2024 14:26:18 -0800 Subject: [PATCH] update goreleaser --- .goreleaser.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index e35c0bb88b..304f59fc4f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,11 @@ builds: - env: - - CGO_ENABLED=0 + - >- + {{- if eq .Os "darwin" or eq .Os "windows" }} + CGO_ENABLED=1 + {{- else }} + CGO_ENABLED=0 + {{- end }} goos: - windows - linux