From aae59a6851a5ece674f4e64546d62fd453633b88 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Mon, 13 Jun 2022 20:49:36 +0800 Subject: [PATCH] Don't set CGO_ENABLED by default Instead let the compiler decide. This will result in less cryptic errors. --- builder/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/builder/default.nix b/builder/default.nix index 5602e0e..23ff061 100644 --- a/builder/default.nix +++ b/builder/default.nix @@ -154,7 +154,6 @@ let { modules , src , pwd ? null - , CGO_ENABLED ? "0" , nativeBuildInputs ? [ ] , allowGoReference ? false , meta ? { } @@ -195,7 +194,6 @@ let nativeBuildInputs = [ removeReferencesTo go ] ++ nativeBuildInputs; inherit (go) GOOS GOARCH; - inherit CGO_ENABLED; GO_NO_VENDOR_CHECKS = "1";