From 8c50e62268c4515353a46c8e20811187818f455c Mon Sep 17 00:00:00 2001 From: Matt Keeler Date: Tue, 26 Jun 2018 14:54:31 -0400 Subject: [PATCH] Make sure to disable cgo for dev builds without gox --- build-support/functions/20-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-support/functions/20-build.sh b/build-support/functions/20-build.sh index a2134c410f..6f6c25934e 100644 --- a/build-support/functions/20-build.sh +++ b/build-support/functions/20-build.sh @@ -430,7 +430,7 @@ function build_consul_local { fi mkdir -p "${outdir}" - GOOS=${os} GOARCH=${arch} go install -ldflags "${GOLDFLAGS}" -tags "${GOTAGS}" && cp "${MAIN_GOPATH}/bin/consul" "${outdir}/consul" + CGO_ENABLED=0 GOOS=${os} GOARCH=${arch} go install -ldflags "${GOLDFLAGS}" -tags "${GOTAGS}" && cp "${MAIN_GOPATH}/bin/consul" "${outdir}/consul" if test $? -ne 0 then err "ERROR: Failed to build Consul for ${osarch}"