Bug#1122020: golang-github-otiai10-copy: please make the build reproducible
Chris Lamb
lamby at debian.org
Fri Dec 5 21:19:27 GMT 2025
Source: golang-github-otiai10-copy
Version: 1.2.0-3
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-otiai10-copy could not be built reproducibly.
This is because the testsuite generates a testdata.copy/ directory
which ends up in the binary package, but, of course, only if the tests
are run. This means the package differs if nocheck is specified or
not.
Patch attached that adds testdata.copy to DH_GOLANG_EXCLUDES. If the
binary package does need these data (eg. for autopkgtests?), then
the packaging will need to be rejigged.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2025-12-05 08:57:14.499976493 -0800
--- b/debian/rules 2025-12-05 09:12:04.368644147 -0800
@@ -1,4 +1,6 @@
#!/usr/bin/make -f
+export DH_GOLANG_EXCLUDES := testdata.copy
+
%:
dh $@ --builddirectory=_build --buildsystem=golang --with=golang
More information about the Reproducible-bugs
mailing list