Merge pull request #89136 from dims/zero-out-build-id-for-reproducible-build

zero out the build id for reproducible builds
This commit is contained in:
Kubernetes Prow Robot 2020-03-18 22:24:38 -07:00 committed by GitHub
commit 80d56220be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -784,7 +784,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} $(kube::version::ldflags)"
goldflags="${GOLDFLAGS=-s -w -buildid=} $(kube::version::ldflags)"
goasmflags="-trimpath=${KUBE_ROOT}"
gogcflags="${GOGCFLAGS:-} -trimpath=${KUBE_ROOT}"