Bug#1122376: golang-github-gin-gonic-gin: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Dec 10 17:01:41 GMT 2025


Source: golang-github-gin-gonic-gin
Version: 1.8.1-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-gin-gonic-gin could not be built reproducibly.

This is because the testsuite creates a 'test' directory that gets
installed to the binary package, meaning that if the tests are
skipped (eg. via nocheck) then the package will contain different
contents.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-12-10 08:53:17.369294093 -0800
--- b/debian/rules	2025-12-10 08:59:57.278051553 -0800
@@ -8,3 +8,4 @@
 
 override_dh_auto_test:
 	TEST_SOCKET_DIR=$(CURDIR)/_build dh_auto_test
+	rm -rf _build/src/github.com/gin-gonic/gin/test


More information about the Reproducible-bugs mailing list