From 6d92b025794572f353019be57b1a3a49bf8663ea Mon Sep 17 00:00:00 2001 From: Eric Chlebek Date: Thu, 28 Jun 2018 12:58:15 -0700 Subject: [PATCH] Make sure GOOS=linux and GOARCH=amd64 for version cmd. (#1761) The commit forces the version command to run with GOOS=linux and GOARCH=amd64. The version command was failing to run properly when cross-compiling to Mac OS and Windows, since the environment variables were causing the binary produced to not be executable on Travis CI. Closes #1759 Signed-off-by: Eric Chlebek --- CHANGELOG.md | 2 ++ build.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1b7a60103..2644b2854a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ Versioning](http://semver.org/spec/v2.0.0.html). ### Fixed - Fixed `sensuctl completion` help for bash and zsh. +- Fixed a bug in build.sh where versions for Windows and Mac OS were not +generated correctly. - Display the name of extensions with table formatting in sensuctl. ## [2.0.0-beta.2] - 2018-06-28 diff --git a/build.sh b/build.sh index e63a6ce941..ef21878610 100755 --- a/build.sh +++ b/build.sh @@ -14,7 +14,7 @@ cmd=${1:-"all"} RACE="" -VERSION_CMD="go run ./version/cmd/version/version.go" +VERSION_CMD="GOOS=linux GOARCH=amd64 go run ./version/cmd/version/version.go" HANDLERS=(slack)