Source: golang-github-appleboy-easyssh-proxy
Version: 1.5.0-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]

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
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- 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

Reply via email to