mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
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:
commit
80d56220be
1 changed files with 1 additions and 1 deletions
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue