We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 652a0ce + 8a0e3e5 commit 5a649f2Copy full SHA for 5a649f2
hack/lib/golang.sh
@@ -233,6 +233,9 @@ kube::golang::build_binaries() {
233
local version_ldflags
234
version_ldflags=$(kube::version::ldflags)
235
236
+ local host_platform
237
+ host_platform=$(kube::golang::host_platform)
238
+
239
# Use eval to preserve embedded quoted strings.
240
local goflags
241
eval "goflags=(${KUBE_GOFLAGS:-})"
@@ -257,7 +260,7 @@ kube::golang::build_binaries() {
257
260
258
261
local -a platforms=("${KUBE_BUILD_PLATFORMS[@]:+${KUBE_BUILD_PLATFORMS[@]}}")
259
262
if [[ ${#platforms[@]} -eq 0 ]]; then
- platforms=("$(kube::golang::host_platform)")
263
+ platforms=("${host_platform}")
264
fi
265
266
local binaries
0 commit comments