Bug#1122021: golang-k8s-sigs-kustomize-cmd-config: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Dec 5 21:21:11 GMT 2025


Source: golang-k8s-sigs-kustomize-cmd-config
Version: 0.20.1+ds-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
golang-k8s-sigs-kustomize-cmd-config could not be built reproducibly.

This is because some test files were being deleted in the target
'execute_before_dh_auto_test'. However, if the tests are skipped with
nocheck, then this target is not executed (ie. the files are not
deleted), meaning that the package will contain these files.

Patch attached that removes these files in the (unconditionally
executed) execute_after_dh_auto_build.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-12-05 08:55:20.863277249 -0800
--- b/debian/rules	2025-12-05 08:56:49.735558117 -0800
@@ -19,7 +19,7 @@
 	# https://salsa.debian.org/go-team/packages/dh-golang/-/blob/81892fe8d3a51a22c910a649052669dd9f18837e/lib/Debian/Debhelper/Buildsystem/golang.pm#L495
 	ln -vs /usr/share/gocode/src/sigs.k8s.io/kustomize/kyaml $(CURDIR)/_build/src/sigs.k8s.io/kustomize/kyaml
 
-execute_before_dh_auto_test:
+execute_after_dh_auto_build:
 	# Remove test files that depends on docker
 	find _build/src/sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e -name "e2e_test.go" -delete
 	find _build/src/sigs.k8s.io/kustomize/cmd/config/internal/commands/e2e -name "test_util_test.go" -delete


More information about the Reproducible-bugs mailing list