Skip to content

Commit 80d5622

Browse files
authored
Merge pull request kubernetes#89136 from dims/zero-out-build-id-for-reproducible-build
zero out the build id for reproducible builds
2 parents de931d5 + d70d04f commit 80d5622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/lib/golang.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ kube::golang::build_binaries() {
784784
# Disable SC2153 for this, as it will throw a warning that the local
785785
# variable goldflags will exist, and it suggest changing it to this.
786786
# shellcheck disable=SC2153
787-
goldflags="${GOLDFLAGS=-s -w} $(kube::version::ldflags)"
787+
goldflags="${GOLDFLAGS=-s -w -buildid=} $(kube::version::ldflags)"
788788
goasmflags="-trimpath=${KUBE_ROOT}"
789789
gogcflags="${GOGCFLAGS:-} -trimpath=${KUBE_ROOT}"
790790

0 commit comments

Comments
 (0)