mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00: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
@ -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 New Issue
Block a user