<#20896 pantsd not invalidating cache when file pe...
# github-notifications
c
#20896 pantsd not invalidating cache when file permission changes Issue created by chris-smith-zocdoc Describe the bug pantsd doesn’t seem to catch a permission change as an invalidation but the local disk cache is unaffected I think. I hit this in a custom plugin rule locally, but an equivalent reproduction is below Pants version
2.19.0
OS Only verified on MacOS so far Additional info
Copy code
shell_sources(name="files")

run_shell_command(
    name="test",
    command="ls -lah {chroot}/*",
    execution_dependencies=[":files"],
)
Copy code
touch foo.sh

pants run :test
outputs -rw-r--r--

chmod +x foo.sh
pants run :test 
outputs -rw-r--r-- !!!!
if you kill pantsd, or use --no-pantsd then you’ll see the correct permissions
-rwxr-xr-x
https://pantsbuild.slack.com/archives/C046T6T9U/p1715225535806319 pantsbuild/pants