mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Make sure to disable cgo for dev builds without gox
This commit is contained in:
parent
b2989f82d6
commit
8c50e62268
@ -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}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user