Does pants automatically set up file watcher for a...
# general
a
Does pants automatically set up file watcher for all files in the directory when issuing a command? I'm running into issues with
MaxFilesWatch
in our CI environment, even when running a basic
pants run ...
on a small PEX.
I see that the number of file watchers is set very low (around 8K), so I can probably ask operations to up this.
f
Yes it watches all files that are not ignored
👍 1
a
Is there a reason for this to be the case even when pants is not run with
--loop
?
f
Yes because it needs to invalidate commands that depend on the files involved if they change
👍 1
c
if you don't need this invalidation during CI, you can run with file watching disabled.. https://www.pantsbuild.org/docs/reference-global#watch_filesystem
🥳 2