Skip to content

Avoid reopening existing cache Git markers for writing - #659

Draft
zaniebot wants to merge 3 commits into
zb/reproduce-bug/15934from
zb/fix-bug/15934
Draft

zaniebot wants to merge 3 commits into
zb/reproduce-bug/15934from
zb/fix-bug/15934

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

An existing sdists-v9/.git marker without write permissions currently causes cache initialization to fail because uv reopens it for writing on every invocation. Create the marker only when it is absent and accept an existing marker, matching the adjacent .gitignore initialization while preserving the existing read-only-filesystem handling. This fixes the specific permission error in astral-sh#15934 without changing cache locking or providing general read-only cache support.

@astral-automations-bot astral-automations-bot Bot added bug Something isn't working area:cache Caching of packages and metadata labels Aug 12, 2026
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/reproduce-bug/15934 branch 2 times, most recently from a3c32b9 to 0473973 Compare August 14, 2026 03:27
@zaniebot zaniebot added priority:2 Important: bounded correctness, release reliability, committed work, or proven performance gains. size:1 Small: one localized behavior with straightforward tests or documentation checks. risk:1 Negligible risk of localized mistakes that are obvious and easy to correct. labels Sep 9, 2026

This branch has not been deployed

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

Labels

area:cache Caching of packages and metadata bug Something isn't working priority:2 Important: bounded correctness, release reliability, committed work, or proven performance gains. risk:1 Negligible risk of localized mistakes that are obvious and easy to correct. size:1 Small: one localized behavior with straightforward tests or documentation checks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants