#20071 Pants' filesystem watching build invalidation should only be sensitive to paths being depended on
Issue created by
kuza55
Is your feature request related to a problem? Please describe.
It would be better if pants did not restart builds when files unrelated to the current build were modified.
Describe the solution you'd like
I'd like pants to build a map of the paths it depends on, and for the filesystem watcher to only restart the build when one of those paths is modified, rather than when any file in the repo is modified.
Describe alternatives you've considered
I'm investigating disabling the filesystem watcher for building docker containers to alleviate the pain of any change during a 30 min build restarting the whole thing, but this is a bit of a kludgy solution.
pantsbuild/pants