Bug#1122014: golang-github-yudai-gojsondiff: please make the build reproducible
Chris Lamb
lamby at debian.org
Fri Dec 5 21:02:12 GMT 2025
Source: golang-github-yudai-gojsondiff
Version: 1.0.0+git20180504.0525c87-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-yudai-gojsondiff could not be built reproducibly.
This is because the call to "cp -a FIXTURES […]" is not matched by a
corresponding "rm -rf […]/FIXTURES", and the results of the cp call
end up in the binary package. This means that the package differs
depending on whether the testsuite is run or not.
Patch attached that adds this rm.
[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:41.232448127 -0800
--- b/debian/rules 2025-12-05 09:14:47.122524936 -0800
@@ -7,6 +7,7 @@
find
cp -a FIXTURES _build/src/github.com/yudai/gojsondiff
dh_auto_test
+ rm -rf _build/src/github.com/yudai/gojsondiff/FIXTURES
override_dh_auto_install:
rm -rf _build/bin
More information about the Reproducible-bugs
mailing list