Skip to content

fix: respect default unix permissions for cache files#24794

Open
denyszhak wants to merge 1 commit intoastral-sh:mainfrom
denyszhak:fix/cache-file-permissions
Open

fix: respect default unix permissions for cache files#24794
denyszhak wants to merge 1 commit intoastral-sh:mainfrom
denyszhak:fix/cache-file-permissions

Conversation

@denyszhak
Copy link
Copy Markdown
Contributor

Closes #24786

Summary

Ruff cache files used unix default 0600, which prevented shared-cache setups from working as expected. This copies uv’s approach that Micha mentioned in the issue by creating cache temp files with 0666 before umask, so they behave like normal files.

Test Plan

Added unix test, also created a manual script and tested locally.

@astral-sh-bot astral-sh-bot Bot requested a review from ntBre April 22, 2026 21:29
@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot Bot commented Apr 22, 2026

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cache files have restrictive permissions

2 participants