Hi All - is it possible to add dependency inferenc...
# plugins
a
Hi All - is it possible to add dependency inference or
pants tailor
implementation via a plugin? Just curious!
f
yes, all of the tailor support uses the
PutativeTargetsRequest
union
any plugin you write can hook into that to be called by tailor
same with dependency inference, look up the
InjectDependenciesRequest
and
InferDependenciesRequest
unions
a
Ah neat! If it's not asking too much could you link to an example implementation in the source code? I sort of have a hard time finding things
f
You could just run
git grep PutativeTargetsRequest
and find lots of them.
a
sure thanks
w
98% of Pants’ functionality is implemented via plugins, so in most cases, the answer to this kind of question is “yes!“. there are some definite rough edges with plugin development that we’d like to fix before calling it stable, and we have to walk the fine line of “document something that is going to change”. https://github.com/pantsbuild/pants/projects/19