<#21432 Only watch source files> Issue created by ...
# github-notifications
c
#21432 Only watch source files Issue created by zopfli Is your feature request related to a problem? Please describe. I'm running into:
Copy code
IntrinsicError: Failed to watch filesystem for `/src/`: Error { kind: MaxFilesWatch, paths: ["/src/"] }
Describe the solution you'd like My watch limit is 8192, I have ~1000 source files. Seemingly, there are a lot of caching files that are also watched (.mypy_cache, .pants.d, etc.), which are in the
.gitignore
file. I would like that the watcher ignores paths that are in
.gitignore
, instead of subscribing to the complete workspace and applying the ignorer once an event comes in. Describe alternatives you've considered • Bumping max file watches, but my CI doesn't let me. •
--[no-]watch-filesystem
, but that forced me to also disabled
pantsd
which I do not want (don't want the startup penalty on subsequent calls to pants, e.g.
xargs
on a
pants
output.) Related #19409 pantsbuild/pants