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:
Mitchell Hashimoto 2018-09-10 13:42:20 -07:00 committed by GitHub
commit e3cabb3a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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