> How are transitive deps resolved? Transitive ...
# general
h
How are transitive deps resolved?
Transitive deps are resolved through the Rules API. In call sites that need transitive deps, they say
await Get(Targets, TransitiveTargets([input_address1, input_address2])
(https://www.pantsbuild.org/v2.0/docs/rules-api-and-target-api#transitive-dependencies-with-transitivetargets) In your plugin / fork of the
binary
goal, you could filter that out to exclude TF when relevant.
remove everything in deps_to_remove
Yeah, at the moment
deps_to_remove
(via
!
ignores) only applies to your direct deps, not your transitive deps. Possibly, we could add that mechanism - I’m curious if other would find it useful too.