Skip to content

fix(uv): replace .python-version and uv.lock symlinks instead of following them - #23325

Open
DrSkyle wants to merge 2 commits into
astral-sh:mainfrom
DrSkyle:fix/symlink-write-through-23319
Open

DrSkyle wants to merge 2 commits into
astral-sh:mainfrom
DrSkyle:fix/symlink-write-through-23319

Conversation

@DrSkyle

@DrSkyle DrSkyle commented Nov 20, 2026

Copy link
Copy Markdown

Summary

When uv writes .python-version or uv.lock, it now replaces any symlink at that path instead of following it. This leaves the symlink target unchanged.

Fixes #23319.

Test Plan

For each file, verify that a uv operation that writes it replaces the symlink with a regular file and leaves the original target unchanged.

@zanieb

zanieb commented Nov 20, 2026

Copy link
Copy Markdown
Member

I think this is breaking

@zanieb zanieb added the breaking A breaking change label Nov 20, 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

breaking A breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uv python pin and uv lock write through repo-shipped .python-version / uv.lock symlinks

2 participants