Commit 5ef80b7
authored
Second stab at fixing the version command in build.sh (#1762)
* Make sure GOOS=linux and GOARCH=amd64 for version cmd.
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>
* Don't pass cross-compile env vars to VERSION_CMD.
Signed-off-by: Eric Chlebek <eric@sensu.io>1 parent 6d92b02 commit 5ef80b7
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
82 | 89 | | |
83 | 90 | | |
84 | 91 | | |
| |||
87 | 94 | | |
88 | 95 | | |
89 | 96 | | |
90 | | - | |
91 | | - | |
92 | 97 | | |
93 | 98 | | |
94 | 99 | | |
| |||
0 commit comments