Is there a mechanism for inferring targets from so...
# plugins
f
Is there a mechanism for inferring targets from sources? Or is it just dependency inference on existing targets?
p
there is a
dependees
goal.
f
to clarify, I have a plugin that I want to auto-generate targets given the presence of source files with a specific extension
p
ah.. I didn't notice this was asked in the plugins channel 🤦‍♂️
ignore me.
f
🙂
an alternative would be to tap into
tailor
and just auto-generate the targets that way
by literally writing them out to BUILD files
h
Yeah, there is not "target gen", only "codegen" which operates on
sources
For now,
./pants tailor
is the solution, with an acknowledgment that we want to move away from needing targets so much in the future. Check out the Shell implementation with
shell/tailor.py