Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pantsd not invalidating cache when file permission changes #20896

Open
chris-smith-zocdoc opened this issue May 9, 2024 · 0 comments
Open

pantsd not invalidating cache when file permission changes #20896

chris-smith-zocdoc opened this issue May 9, 2024 · 0 comments
Labels

Comments

@chris-smith-zocdoc
Copy link
Contributor

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

shell_sources(name="files")

run_shell_command(
    name="test",
    command="ls -lah {chroot}/*",
    execution_dependencies=[":files"],
)
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant