Skip to content

Commit d782a96

Browse files
committed
Show file extensions on available commands when not .exe
1 parent d2b9036 commit d782a96

File tree

1 file changed

+5
-1
lines changed
  • crates/uv/src/commands/project

1 file changed

+5
-1
lines changed

crates/uv/src/commands/project/run.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,11 @@ pub(crate) async fn run(
897897
.map(|entry| entry.path())
898898
.filter(|path| is_executable(path))
899899
.map(|path| {
900-
if cfg!(windows) {
900+
if cfg!(windows)
901+
&& path
902+
.extension()
903+
.is_some_and(|exe| exe = std::env::consts::EXE_EXTENSION)
904+
{
901905
// Remove the extensions.
902906
path.with_extension("")
903907
} else {

0 commit comments

Comments
 (0)