Do I need to do anything in particular to make a n...
# development
a
Do I need to do anything in particular to make a new subsystem show up after I add one?
h
yeah, it needs to be used by a rule that is registered in a register.py
a
(It’s not immediately clear how they get picked up by Pants, even if the type is consumed by a rule)
OK, so if there’s no register.py, then it’s unlikely to be picked up?
h
yes. And not only would you need the register.py, it would need to be activated in pants.toml
a
OK, that makes sense
h
your tests can activate it via RuleRunner though. Their rule graph != the rule graph you use when running
./pants
in
pantsbuild/pants
f
@ancient-vegetable-10556: the register is under src/python/pants/backend/experimental/java
note the “experimental”
a
@fast-nail-55400 that’d explain why I couldn’t find it 🙂
f
the thought was to preserve commit history as much as possible by not having to refactor out the
experimental
a
sure thing
f
so only the register.py’s will have their history funky
a
Hey, enabling that experimental package made my subsystem show up!
Thanks!
w
yea, the only reason it’s not enabled right now is https://github.com/pantsbuild/pants/issues/12889 … i think that i found a solution to that on Friday: will be focused on implementing it today