Skip to content

Commit

Permalink
bootstrap: use uv.exe on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dsp committed Feb 23, 2024
1 parent 0cf167f commit 04d6b54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rye/src/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,11 @@ impl Uv {
// For instance on aarch64 macos this will request a compatible uv version.
let download = UvDownload::try_from(UvRequest::default())?;
let uv_dir = get_app_dir().join("uv").join(download.version());
let uv_bin = uv_dir.join("uv");
let uv_bin = if cfg!(windows) {
uv_dir.join("uv.exe")
} else {
uv_dir.join("uv")
};

if uv_dir.exists() && uv_bin.is_file() {
return Ok(Self { uv_bin, output });
Expand Down

0 comments on commit 04d6b54

Please sign in to comment.