Detect correct GOOS/ARCH for copying binary with build_consul_local

If GOOS/ARCH is set to something custom, we need to unset it before
testing the value so we can compare to the _original value_.
pull/4646/head
Mitchell Hashimoto 6 years ago
parent 22500f242e
commit e7dfb8a0d2
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A

@ -460,7 +460,7 @@ function build_consul_local {
mkdir -p "${outdir}" mkdir -p "${outdir}"
GOBIN_EXTRA="" GOBIN_EXTRA=""
if test "${os}" != "$(go env GOOS)" -o "${arch}" != "$(go env GOARCH)" if test "${os}" != "$(go env GOHOSTOS)" -o "${arch}" != "$(go env GOHOSTARCH)"
then then
GOBIN_EXTRA="${os}_${arch}/" GOBIN_EXTRA="${os}_${arch}/"
fi fi

Loading…
Cancel
Save