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_.
This commit is contained in:
parent
7a42c31330
commit
f01fc96161
|
@ -460,7 +460,7 @@ function build_consul_local {
|
|||
|
||||
mkdir -p "${outdir}"
|
||||
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
|
||||
GOBIN_EXTRA="${os}_${arch}/"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue