#1122389 golang-mvdan-editorconfig: please make the build reproducible

#1122389#5
Date:
2025-12-10 20:22:47 UTC
From:
To:
Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
golang-mvdan-editorconfig could not be built reproducibly.

This is because the call to remove the _sample directory was
effectively in the wrong debian/rules target. Whilst it was in the
execute_after_dh_auto_test target, this target is not called if the
tests are skipped — meaning that if the tests aren't run, then the
binary package will contain the contents of _sample. Specifically
this file:

  /usr/share/gocode/src/mvdan.cc/editorconfig/_sample/subdir/code.go

The other deletions (of core-test and CMakeLists.txt) are in the
'right' target, but the attached patch simply renames the target:
it could be split into two so the difference is more explicit, but
your call.

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


Regards,