Source: golang-github-ysmood-got
Version: 0.40.0-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-github-ysmood-got could not be built reproducibly.

This is because the testsuite does not 100% clean up after itself,
leaving various files in the binary .deb. This is, in itself, not a
terribly serious issue, but it means that if the testsuite is
skipped (ie. via nocheck) then the binary contents will necessarily
differ.

Patch attached, although the upstream testsuite could be altered as
well to fix the issue.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2026-06-03 13:56:12.438107477 -0700
--- b/debian/rules      2026-06-03 14:02:37.452317028 -0700
@@ -7,6 +7,8 @@
        -dh_auto_test $(DH_BUILD_OPTS) -- -run=TestEnsureCoverage
        env TERM="xterm-256color" GODEBUG="tracebackancestors=1000" \
                dh_auto_test $(DH_BUILD_OPTS) -- -skip=TestEnsureCoverage
+       find debian/_build -type d -name .got -print0 | \
+               xargs -0r rm -rvf
 
 override_dh_auto_install:
        dh_auto_install -- --no-binaries

Reply via email to