astral-sh/uv

`uv self update` may leave uv unusable if interrupted

Open

#12,142 opened on Mar 12, 2025

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Rust (84,934 stars) (3,111 forks)batch import
bughelp wantedwindows

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