Commit 0532a11
cilium-cli: Use the default Make target to build release binaries
The top-level Makefile.defs sets GOARCH to the local architecture by
default as a Make variable, which gets used by the GO_BUILD variable.
The local-release Make target in the cilium-cli directory explicitly
sets GOARCH environment variable to build binaries for amd64 and arm64,
but it gets overridden by the top-level GO_BUILD variable. This results
in all the release binaries having GOARCH set to the architecture of the
machine where they get built.
To fix the issue, pass GOARCH (among other variables) to the default
Make target to build release binaries instead of directly invoking go
build. This way GO_BUILD variable gets updated with the correct GOARCH
value for each release binary.
Suggested-by: Hadrien Patte <hadrien.patte@datadoghq.com>
Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>1 parent 62b3e7c commit 0532a11
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | | - | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
48 | | - | |
49 | | - | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
64 | | - | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
0 commit comments