how can i dynamically add a dependency to a target...
# general
f
how can i dynamically add a dependency to a target based on a particular fields value? .. i may add that these targets are generated by a
TargetFilesGenerator
… and i’m looking at
settings_request_cls
— but after digging a little bit i’ve not found what i need — i think i need to do something like this … but there’s something i’m not fully understanding yet here i think in terms of how the sausage is made …
h
this would be adding dependency inference. It should be irrelevant that their generated targets, it's the same API
what version of Pants are you on? I think the API changed a little in 2.14
f
2.14 — ah, of course — i see what you mean
i made it work in my goal rule — i’m fairly certain i can make it work through dependency inference as well 👍 — thanks for the pointer
❤️ 1
h
cool let us know if you have questions 🙂
👍 1