fluxcd: build with CGO_ENABLED=0 to match upstream

The upstream Makefile and goreleaser config both build with
CGO_ENABLED=0. This produces a fully static binary and ensures
consistent behavior (e.g., pure-Go DNS resolver) across all
platforms.
This commit is contained in:
leigh capili
2026-05-01 22:49:37 -06:00
parent c7ff28a87e
commit 115d1ee263
+2
View File
@@ -39,6 +39,8 @@ buildGoModule rec {
rm source/cmd/flux/create_secret_git_test.go
'';
env.CGO_ENABLED = 0;
ldflags = [
"-s"
"-w"