#18506 `preamble` backend: Use target type, not just path, to select files preamble should work on.
Issue created by
cognifloyd
Is your feature request related to a problem? Please describe.
I have extension-less executables that need the header. Writing a glob for extension-less files can be problematic.
Describe the solution you'd like
In the preamble config, allow me to specify target types, not just paths. Then anything that is owned by a
python_source*
target would get picked up, no matter if it matches the
*.py
pattern typical of python files.
Describe alternatives you've considered
Fiddly globs
pantsbuild/pants