Skip to content

Commit

Permalink
Make sure GOOS=linux and GOARCH=amd64 for version cmd. (#1761)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
echlebek authored Jun 28, 2018
1 parent b46bb14 commit 6d92b02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6d92b02

Please sign in to comment.