I think I encountered a caching bug with file perm...
# general
f
I think I encountered a caching bug with file permissions, pantsd doesn’t seem to catch a permission change as an invalidation (testing on mac) but the local disk cache is unaffected I think. I hit this in a custom plugin rule locally, but an equivalent reproduction is something like this create a file, say
touch foo.sh
Copy code
shell_sources(name="files")

run_shell_command(
    name="test",
    command="ls -lah {chroot}/*",
    execution_dependencies=[":files"],
)
running this target
pants run :test
returns the permissions like
-rw-r--r--
now fix the permissions
chmod +x foo.sh
and run
pants run :test
again, its still
-rw-r--r--
!!! if you kill pantsd, or use
--no-pantsd
then you’ll see the correct
-rwxr-xr-x
This is
2.19.0
if it matters
b
Huh, that seems suboptimal. Can you file an issue? Thanks!
f