Skip to content

Commit

Permalink
fix: goreleaser for mfa token caching (#2320)
Browse files Browse the repository at this point in the history
mfa token caching does not work for windows / darwin OS when CGO is
disabled. Its recommended to turn of CGO for performance reasons, so
adding an env variable to gorelaser to only turn on CGO for windows and
darwin

fixes:
#908 
#2194
  • Loading branch information
sfc-gh-swinkler authored Jan 11, 2024
1 parent 05f96c6 commit 4fef709
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4fef709

Please sign in to comment.