Bug#1137335: docker-credential-gcr: please make the build reproducible

Chris Lamb lamby at debian.org
Fri May 22 19:07:45 BST 2026


Source: docker-credential-gcr
Version: 2.1.32-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
docker-credential-gcr could not be built reproducibly.

This is because the testsuite does not completely clean up after itself,
meaning that if the tests are skipped the contents of the binary files
differ and is thereby unreproducible.

Patch attached that deletes the two .json files.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2026-05-22 08:28:03.106861720 -0700
--- b/debian/rules	2026-05-22 08:44:39.923095519 -0700
@@ -12,3 +12,5 @@
 	dh_auto_build -- -ldflags="-X 'github.com/GoogleCloudPlatform/docker-credential-gcr/v2/config.Version=$(DEB_VERSION_UPSTREAM)'"
 	mv $(GOPATH)/bin/v2 $(GOPATH)/bin/docker-credential-gcr
 
+execute_after_dh_auto_test:
+	rm -f $(GOPATH)/src/github.com/GoogleCloudPlatform/docker-credential-gcr/v2/test/testdata/test_*.json


More information about the Reproducible-bugs mailing list