[pkg-go] Bug#1067947: golang-github-stvp-tempredis: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Mar 29 11:00:56 GMT 2024


Source: golang-github-stvp-tempredis
Version: 0.0~git20231107.8a695b6-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
golang-github-stvp-tempredis could not be built reproducibly.

This is because the package build generates a Redis dump.rdb database
during the tests. This (nondeterministic) file is then shipped in the
binary package.

Patch attached that removes these after running the tests.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2024-03-29 10:35:18.997786394 +0000
--- b/debian/rules	2024-03-29 10:55:36.280785041 +0000
@@ -2,3 +2,6 @@
 
 %:
 	dh $@ --buildsystem=golang --with=golang
+
+execute_after_dh_auto_test:
+	find obj-* -name dump.rdb -delete


More information about the Pkg-go-maintainers mailing list