From 5e5b46028fc12fb83afcc1a2dd59477d4bf96d08 Mon Sep 17 00:00:00 2001 From: Naomi Seyfer Date: Tue, 14 May 2019 12:22:31 -0700 Subject: [PATCH] Disable cgo extensions in build-binaries.sh (#106) Previously, we were running into errors on computers without cross-compilation C headers. For simplicity of building, and because we don't need superperformant net libs, disable cgo. --- hack/build-binaries.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/build-binaries.sh b/hack/build-binaries.sh index 5d8c31663..914c770b7 100755 --- a/hack/build-binaries.sh +++ b/hack/build-binaries.sh @@ -22,7 +22,7 @@ source ${base}/hack/util/flags.sh ld_flags="$(ld_flags ${base}/hack)" export GO111MODULE=on - +export CGO_ENABLED=0 echo "🚧 🐧 Building for Linux" GOOS=darwin GOARCH=amd64 go build -mod=vendor -ldflags "${ld_flags}" -o ${base}/kn-darwin-amd64 ${base}/cmd/... echo "🚧 🍏 Building for macOS"