https://pantsbuild.org/ logo
#general
Title
# general
p

prehistoric-wire-35783

01/10/2023, 11:38 AM
Hello I am encountering an exception coming from Pants's Rust engine in CI/CD. Would anyone know a workaround?
Copy code
Exception: Snapshot failed: Failed to digest inputs: Throw { val: Failed to watch filesystem for `/some/path`: Error { kind: MaxFilesWatch, paths: ["/some/path"] }, python_traceback: "Traceback (no traceback):\n  <pants native internals>\nException: Failed to watch filesystem for `/some/path`: Error { kind: MaxFilesWatch, paths: [\"/some/path\"] }", engine_traceback: ["digest_file"] }
p

prehistoric-wire-35783

01/10/2023, 7:26 PM
Thanks Stu for link. I don't have root access to the CI/CD and I believe it runs in a Docker container with restricted access. Am I out of luck then?
w

witty-crayon-22786

01/10/2023, 8:08 PM
the only other option is to set both
--no-pantsd
and `--no-watch-filesystem`: it will mean that running multiple
pants
commands in a row is slower, but individual commands should be the same speed
👍 1
p

prehistoric-wire-35783

01/10/2023, 8:10 PM
Thank you Stu. I will give it a try! 😄