Source: golang-github-kr-binarydist
Version: 0.1.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-kr-binarydist could not be built reproducibly.

This is because the testsuite does not clean up a number of files it
generates, so that if the tests are skipped (via nocheck), then the
binary package will differ.

A patch is attached that removes these files.


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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-12-12 11:53:37.780373750 -0800
--- b/debian/rules      2025-12-12 12:02:35.225489032 -0800
@@ -14,6 +14,9 @@
        # Include test fixtures.
        cp -av testdata $(BUILDDIR)/src/$(DH_GOPKG)/
 
+execute_after_dh_auto_test:
+       rm -fv obj-$(DEB_BUILD_GNU_TYPE)/src/github.com/kr/binarydist/test.*
+
 gen-orig-source:
        git archive --prefix=$(DEB_SOURCE)-$(DEB_VERSION)/     \
                upstream/$(subst ~,_,$(DEB_VERSION))           \

Reply via email to