mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 03:08:15 +00:00
Remove unnecessary wrapper flags
Drop KUBE_GOFLAGS, KUBE_GOGCFLAGS, KUBE_GOLDFLAGS references from the build infrastructure. There are some usages still for KUBE_GOFLAGS, so we should print a deprecation message until all those are fixed. If both KUBE_GOFLAGS and GOFLAGS are just then we just bail out.
This commit is contained in:
@@ -624,9 +624,9 @@ kube::golang::build_binaries() {
|
||||
|
||||
# Use eval to preserve embedded quoted strings.
|
||||
local goflags goldflags gogcflags
|
||||
eval "goflags=(${KUBE_GOFLAGS:-})"
|
||||
goldflags="${KUBE_GOLDFLAGS:-} $(kube::version::ldflags)"
|
||||
gogcflags="${KUBE_GOGCFLAGS:-}"
|
||||
eval "goflags=(${GOFLAGS:-})"
|
||||
goldflags="${GOLDFLAGS:-} $(kube::version::ldflags)"
|
||||
gogcflags="${GOGCFLAGS:-}"
|
||||
|
||||
local use_go_build
|
||||
local -a targets=()
|
||||
|
||||
Reference in New Issue
Block a user