Source: golang-k8s-apimachinery
Version: 0.33.4-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]

Hi,

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

This is because the call to remove some tests were essentially in the
wrong debian/rules target. Whilst they were in execute_before_dh_auto_test,
this target is not called if the tests are skipped — meaning that if the tests
_aren't_ run, then the package contains those files.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-12-29 11:29:12.537009551 -0800
--- b/debian/rules      2025-12-29 11:31:47.245482164 -0800
@@ -3,7 +3,7 @@
 %:
        dh $@ --builddirectory=_build --buildsystem=golang
 
-execute_before_dh_auto_test:
+execute_after_dh_auto_build:
        # these tests fail because they need to load a big swagger.json file
        # that is found in github.com/kubernetes/kubernetes
        find _build/src/k8s.io/apimachinery/pkg/util/managedfields -name 
"*_test.go" -delete

Reply via email to