mirror of https://github.com/status-im/consul.git
Merge pull request #4646 from hashicorp/b-fix-build
Detect correct GOOS/ARCH for copying binary with build_consul_local
This commit is contained in:
commit
e3cabb3a26
|
@ -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…
Reference in New Issue