Should *-dev packages ship examples and testdata?
Hi!
While working on Go packages recently, I noticed many of them have the
subdirectories
examples/
testdata/
The stuff in examples/ is shipped in many Debian packages currently in
the binary deb files. In one case the examples/ even lead to a
/usr/bin/example being generated and it would have gone into the
package if I hadn't noticed it and explicitly removed it.
To my understanding no package that uses another -dev package as a
build dependency would ever have any need for neither the examples nor
testdata. Those files are more relevant to the person developing the
library, right?
Should we aim to remove examples/ and testdata/ in future Go libraries
(*-dev packages)?
In addition to them being useless and taking up disk space, and
occasionally affecting the build, they also generate tons of Lintian
nags such as:
I: golang-github-charmbracelet-glamour source:
very-long-line-length-in-source-file 1271 > 512
[ansi/testdata/TestRenderer/task.golden:2]
I: golang-github-charmbracelet-glamour-dev:
package-contains-documentation-outside-usr-share-doc
[usr/share/gocode/src/github.com/charmbracelet/glamour/styles/examples/ordered_list.md]
Reply to: