mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 02:11:09 +00:00
Stop unsetting the golang buildid
Golang fixed the issue with the non-reproducible buildid already in v1.15.3:c5f6920212
a3e965ce8a
This means we can now use the internal buildid instead of the unset one. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
This commit is contained in:
parent
727ecc6353
commit
746ec78ebf
@ -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}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user