Bug#1000401: golang-github-go-git-go-git: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Nov 22 15:55:33 GMT 2021


Source: golang-github-go-git-go-git
Version: 5.4.2-3
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-go-git-go-git could not be built reproducibly.

This is because the testsuite leaves a Git worktree (or similar)
around in a .tmp directory. A patch is attached that cleans this up
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	2021-11-22 07:21:35.700858479 -0800
--- b/debian/rules	2021-11-22 07:49:45.545730652 -0800
@@ -2,3 +2,6 @@
 
 %:
 	dh $@ --builddirectory=_build --buildsystem=golang --with=golang
+
+execute_after_dh_auto_test:
+	find _build -type d -name .tmp -print0 | xargs -0r rm -rf


More information about the Reproducible-bugs mailing list