Source: golang-github-otiai10-copy
Version: 1.2.0-3
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-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
`. `'` [email protected] / chris-lamb.co.uk
`-
--- 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