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,