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 b2989f82d6
commit 8c50e62268
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ function build_consul_local {
fi fi
mkdir -p "${outdir}" 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 if test $? -ne 0
then then
err "ERROR: Failed to build Consul for ${osarch}" err "ERROR: Failed to build Consul for ${osarch}"