Source: golang-github-emicklei-dot
Version: 1.6.2-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-emicklei-dot could not be built reproducibly.

This was because it ships a different binary package depending
on whether the tests are run or not. The testsuite was generating
a number of files that weren't being cleaned up, which then ended
up in the binary .deb such as TestExampleSubsystemSameGraph.dot
and friends.

Patch attached that uses DH_GOLANG_EXCLUDES to ensure they are
not installed, but they could also be deleted in (for example)
a 'execute_after_dh_auto_test' target.


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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-11-19 12:49:21.618537627 -0800
--- b/debian/rules      2025-11-19 12:58:05.543555821 -0800
@@ -1,4 +1,11 @@
 #!/usr/bin/make -f
 
+export DH_GOLANG_EXCLUDES := \
+       subsystem.dot \
+       subsystem2.dot \
+       TestExampleSubsystemSameGraph.dot \
+       TestExampleSubsystemExternalGraph.dot \
+       TestCompositeWithUnusedIOSameGraph.dot
+
 %:
        dh $@ --builddirectory=debian/.build/upstream --buildsystem=golang

Reply via email to