Bug#1121795: golang-github-appleboy-easyssh-proxy: please make the build reproducible
Chris Lamb
lamby at debian.org
Tue Dec 2 22:24:29 GMT 2025
Source: golang-github-appleboy-easyssh-proxy
Version: 1.5.0-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-appleboy-easyssh-proxy could not be built reproducibly.
This was because the tests did not completely clean up after themselves
and this resulted in the binary package containining different contents
depending on whether the tests were 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-12-02 12:04:57.864480152 -0800
--- b/debian/rules 2025-12-02 12:06:24.314569294 -0800
@@ -5,6 +5,8 @@
# system.
export DH_GOLANG_EXCLUDES = example
+TEST_DIR := debian/.build/upstream/src/github.com/appleboy/easyssh-proxy/
+
%:
dh $@ --builddirectory=debian/.build/upstream --buildsystem=golang
@@ -14,5 +16,6 @@
override_dh_auto_test:
# The unit test `TestGetKeyFile` needs data from the `tests/` directory.
# We copy it into the build area before running the test.
- cp -r tests debian/.build/upstream/src/github.com/appleboy/easyssh-proxy/
+ cp -r tests $(TEST_DIR)
dh_auto_test -- -run '^TestGetKeyFile$$'
+ rm -rf $(TEST_DIR)/tests
More information about the Reproducible-bugs
mailing list