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.
This commit is contained in:
Naomi Seyfer 2019-05-14 12:22:31 -07:00 committed by Knative Prow Robot
parent 570325425f
commit 5e5b46028f
1 changed files with 1 additions and 1 deletions

View File

@ -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"