Bug#1121072: golang-github-emicklei-dot: please make the build reproducible

Chris Lamb lamby at debian.org
Thu Nov 20 14:53:21 GMT 2025


Source: golang-github-emicklei-dot
Version: 1.6.2-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- 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


More information about the Reproducible-bugs mailing list