Bug#1120124: golang-github-apptainer-container-library-client: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Nov 5 18:22:41 GMT 2025


Source: golang-github-apptainer-container-library-client
Version: 1.4.10-1
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-apptainer-container-library-client could not be built reproducibly.

This is because it ships different files if the tests are run or not.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-11-05 09:38:06.046334735 -0800
--- b/debian/rules	2025-11-05 09:43:18.191105518 -0800
@@ -1,8 +1,11 @@
 #!/usr/bin/make -f
 
+CLIENT_DIR = $(CURDIR)/_build/src/github.com/apptainer/container-library-client/client
+
 %:
 	dh $@ --builddirectory=_build --buildsystem=golang --with=golang
 
 override_dh_auto_test:
-	cp -a client/test_data $(CURDIR)/_build/src/github.com/apptainer/container-library-client/client/
+	cp -a client/test_data $(CLIENT_DIR)
 	dh_auto_test
+	rm -rf $(CLIENT_DIR)/test_data


More information about the Reproducible-bugs mailing list