Bug#1153060: golang-github-anchore-stereoscope: please make the build reproducible [nocheck]
Chris Lamb
lamby at debian.org
Wed Nov 4 22:06:04 GMT 2026
Source: golang-github-anchore-stereoscope
Version: 0.3.4-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-anchore-stereoscope could not be built reproducibly.
This is because the testsuite generates a file that is not cleaned up
afterwards, leading it to be installed to:
/usr/share/gocode/src/github.com/anchore/stereoscope/pkg/image/docker/__snapshots__/manifest_test.snap
However, this means that if the tests are skipped, then the package
will not contain this file (as it is not generated in the first place).
This means that the package is not reproducible.
Patch attached that deletes this file after running the tests, and
removes the chmod of the .snap file (as it would no longer be present).
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2026-11-04 09:59:02.610632483 -0800
--- b/debian/rules 2026-11-04 14:01:33.058190916 -0800
@@ -27,7 +27,7 @@
rm -rf debian/*/usr/share/gocode/src/github.com/anchore/stereoscope/.make
# Upstream ships some fixtures with the executable bit set, and a .gitignore
# inside the OCI test fixtures that has no business in a package.
- find debian \( -name '*.snap' -o -name '*.sif' \) -type f -exec chmod -x {} +
+ find debian -name '*.sif' -type f -exec chmod -x {} +
find debian -name '.gitignore' -delete
execute_after_dh_auto_configure:
@@ -69,3 +69,5 @@
# descriptors, not fewer. The assertion is stricter than the invariant it is
# checking, so it is skipped rather than papered over; worth telling upstream.
dh_auto_test -- -skip 'TestFileCatalog_Open|TestFileCatalog_GetBasenames|TestFileCatalog_GetByBasename|TestFileCatalog_GetByBasenameGlob|TestFileCatalog_GetByExtension|TestFileCatalog_GetByMimeType|TestFileMetadataFromTar|TestMetadataFromTar|TestReaderFromTar_GoCase|TestReaderFromTar_MissingFile|TestIndexedTarIndex_GoCase|TestIndexedTarReader_DuplicateEntries|Test_DockerMainRegistry_Provide|TestImage_PartialReadReleasesEarlierLayers'
+ find debian/_build -name manifest_test.snap -delete
+
More information about the Reproducible-bugs
mailing list