From add3085cf6326fe54a28d6c5e98497872e6de4e1 Mon Sep 17 00:00:00 2001 From: Michael Russell Date: Tue, 18 Sep 2018 22:02:24 +0200 Subject: [PATCH] Build statically compiled release binaries --- build/build.go | 1 + 1 file changed, 1 insertion(+) diff --git a/build/build.go b/build/build.go index 83765d8..4527ecc 100644 --- a/build/build.go +++ b/build/build.go @@ -55,6 +55,7 @@ func checksum(goos string, goarch string) error { func build(goos string, goarch string) error { os.Setenv("GOOS", goos) os.Setenv("GOARCH", goarch) + os.Setenv("CGO_ENABLED", "0") cmd := exec.Command( "/usr/local/go/bin/go",