From 920c91a00532713bc4f8cbb3b0ccd36f0e8d01df Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Sun, 21 Apr 2024 22:39:43 +0100 Subject: [PATCH] Go projects default to not using cgo --- home/bin/init-nix-shell | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/bin/init-nix-shell b/home/bin/init-nix-shell index fc4e935e..16ae3de6 100755 --- a/home/bin/init-nix-shell +++ b/home/bin/init-nix-shell @@ -87,6 +87,11 @@ mkShell { gopls delve ]; + + env = { + # disable cgo by default + CGO_ENABLED = "0"; + }; } """