Use __dependents_rules__
to optimize pants dependents
calculation
#21619
Labels
__dependents_rules__
to optimize pants dependents
calculation
#21619
Is your feature request related to a problem? Please describe.
We have the following monorepo structure:
Projects are not allowed to depend on different project targets except for
src/python
, so we have rules for every project:Every project has it's own
docker_image
targets andhelm_deployment
targets.Now, imagine we change some code in
project1/src/
and try to deploy it with:This triggers a bunch of calculation like:
which takes about 4 minutes without cache.
However we know for sure that no project can depend on
project1/src/
which means we can skip other projects.Describe the solution you'd like
Collect information from
__dependents_rules__
and use it to optimizepants dependents
logic.Describe alternatives you've considered
Live with very slow
pants dependents
and cryThe text was updated successfully, but these errors were encountered: