#1122020 golang-github-otiai10-copy: please make the build reproducible

#1122020#5
Date:
2025-12-05 21:19:27 UTC
From:
To:
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,