Skip to content

Avoid uv cache clean errors due to Win32 path normalization#18856

Open
samypr100 wants to merge 1 commit intoastral-sh:mainfrom
samypr100:verbatim
Open

Avoid uv cache clean errors due to Win32 path normalization#18856
samypr100 wants to merge 1 commit intoastral-sh:mainfrom
samypr100:verbatim

Conversation

@samypr100
Copy link
Copy Markdown
Collaborator

Summary

Closes #16586

Adds a public function to uv-fs crate called verbatim_path which is now leveraged by rm_rf in uv-cache crate for cleaning paths that require verbatim composition to avoid failures seen in #16586.

Test Plan

Tested locally on Windows 10 and 11 by setting UV_CACHE_DIR to a local directory and then running uv init, uv add uwsgi, and uv cache clean to ensure there is no failures.

Additionally unit and integration tests were added to avoid future regressions.

@samypr100 samypr100 marked this pull request as ready for review April 5, 2026 15:56
@charliermarsh charliermarsh requested review from EliteTK and konstin April 6, 2026 01:49
@charliermarsh
Copy link
Copy Markdown
Member

Awesome. Maybe @konstin or @EliteTK can review the verbatim path code?

@samypr100 samypr100 force-pushed the verbatim branch 2 times, most recently from 2bd0ec4 to e302f23 Compare April 6, 2026 12:26
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.

uv cache clean fails on Windows when sdist contains special filenames

2 participants