Source: golang-github-cyclonedx-cyclonedx-go
Version: 0.9.3-2
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-github-cyclonedx-cyclonedx-go could not be built reproducibly.

This is because debian/rules deletes some files to prevent them from
being run during the testsuite. However, this means if the tests are
skipped, then the .deb package will _contain_ these files (although
they are, of course, not tested).

A patch is attached that removes these files regardless of whether
the tests are skipped by simply moving the 'rm' calls to a different
debian/rules target.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2026-06-01 09:30:46.350877817 -0700
--- b/debian/rules      2026-06-01 09:46:10.175724771 -0700
@@ -4,7 +4,7 @@
        dh $@ --builddirectory=_build --buildsystem=golang
 
 # requires unpackaged github.com/terminalstatic/go-xsd-validate
-execute_before_dh_auto_test:
+execute_after_dh_auto_build:
        rm -fv \
        _build/src/github.com/CycloneDX/cyclonedx-go/validate_xml_test.go \
        _build/src/github.com/CycloneDX/cyclonedx-go/cyclonedx_test.go \

Reply via email to