astral-sh/uv

`uv self update` may leave uv unusable if interrupted

Open

#12,142 opened on Mar 12, 2025

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Rust (3,111 forks)batch import
bughelp wantedwindows

Repository metrics

Stars
 (84,934 stars)
PR merge metrics
 (Avg merge 7d 16h) (259 merged PRs in 30d)

Description

Description:

The current update process renames uv.exe to uv.exe.previous.exe before completing. If interrupted (e.g., by network failures or manual termination), this can leave uv unusable due to an incomplete update.

Suggested Improvement:

Ensure atomic replacement where uv.exe is only modified after the new version is fully validated.

Contributor guide