Make sure to disable cgo for dev builds without gox

This commit is contained in:
Matt Keeler 2018-06-26 14:54:31 -04:00
parent 82f2586a48
commit 579d6813f4
1 changed files with 1 additions and 1 deletions

View File

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