Skip to content

Commit 795550c

Browse files
authored
Rollup merge of #146738 - beepster4096:widnows, r=jieyouxu
Fix tidy spellchecking on Windows Tidy should now check for executable with the right extension for the platform when installing tools
2 parents 6d62ae3 + 45e5c76 commit 795550c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/tidy/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ pub fn ensure_version_or_cargo_install(
237237
if !cargo_exit_code.success() {
238238
return Err(io::Error::other("cargo install failed"));
239239
}
240-
let bin_path = tool_bin_dir.join(bin_name);
240+
let bin_path = tool_bin_dir.join(bin_name).with_extension(env::consts::EXE_EXTENSION);
241241
assert!(
242242
matches!(bin_path.try_exists(), Ok(true)),
243243
"cargo install did not produce the expected binary"

0 commit comments

Comments
 (0)