From 115d1ee263396f8346ffc7481e20f0be336056bd Mon Sep 17 00:00:00 2001 From: leigh capili Date: Fri, 1 May 2026 22:49:37 -0600 Subject: [PATCH] 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. --- pkgs/by-name/fl/fluxcd/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/fl/fluxcd/package.nix b/pkgs/by-name/fl/fluxcd/package.nix index 96eae97cadb1..33938de14a40 100644 --- a/pkgs/by-name/fl/fluxcd/package.nix +++ b/pkgs/by-name/fl/fluxcd/package.nix @@ -39,6 +39,8 @@ buildGoModule rec { rm source/cmd/flux/create_secret_git_test.go ''; + env.CGO_ENABLED = 0; + ldflags = [ "-s" "-w"