diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh index 30484b5288c..5029bc18e67 100755 --- a/hack/lib/golang.sh +++ b/hack/lib/golang.sh @@ -794,7 +794,7 @@ kube::golang::build_binaries() { # Disable SC2153 for this, as it will throw a warning that the local # variable goldflags will exist, and it suggest changing it to this. # shellcheck disable=SC2153 - goldflags="${GOLDFLAGS=-s -w -buildid=} $(kube::version::ldflags)" + goldflags="${GOLDFLAGS=-s -w} $(kube::version::ldflags)" goasmflags="-trimpath=${KUBE_ROOT}" gogcflags="${GOGCFLAGS:-} -trimpath=${KUBE_ROOT}"