We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 261fe58 + a5d9a16 commit 01f6e04Copy full SHA for 01f6e04
crates/volta-core/src/run/mod.rs
@@ -104,10 +104,11 @@ fn tool_name_from_file_name(file_name: &OsStr) -> OsString {
104
105
#[cfg(windows)]
106
fn tool_name_from_file_name(file_name: &OsStr) -> OsString {
107
- // On Windows PowerShell, the file name includes the .exe suffix
+ // On Windows PowerShell, the file name includes the .exe suffix,
108
+ // and the Windows file system is case-insensitive
109
// We need to remove that to get the raw tool name
110
match file_name.to_str() {
- Some(file) => OsString::from(file.trim_end_matches(".exe")),
111
+ Some(file) => OsString::from(file.to_ascii_lowercase().trim_end_matches(".exe")),
112
None => OsString::from(file_name),
113
}
114
0 commit comments