Skip to content

Commit 6d92b02

Browse files
authored
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 <eric@sensu.io>
1 parent b46bb14 commit 6d92b02

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Versioning](http://semver.org/spec/v2.0.0.html).
99

1010
### Fixed
1111
- Fixed `sensuctl completion` help for bash and zsh.
12+
- Fixed a bug in build.sh where versions for Windows and Mac OS were not
13+
generated correctly.
1214
- Display the name of extensions with table formatting in sensuctl.
1315

1416
## [2.0.0-beta.2] - 2018-06-28

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cmd=${1:-"all"}
1414

1515
RACE=""
1616

17-
VERSION_CMD="go run ./version/cmd/version/version.go"
17+
VERSION_CMD="GOOS=linux GOARCH=amd64 go run ./version/cmd/version/version.go"
1818

1919
HANDLERS=(slack)
2020

0 commit comments

Comments
 (0)