Skip to content

Commit 3d47465

Browse files
branchseerclaude
andcommitted
fix(e2e): inherit PATHEXT on Windows for executable lookup
When using native bash with env_clear(), the child process loses PATHEXT which is needed by the which crate to find executables with extensions like .exe and .cmd on Windows. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0444f61 commit 3d47465

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • crates/vite_task_bin/tests/e2e_snapshots

crates/vite_task_bin/tests/e2e_snapshots/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ fn run_case_inner(tmpdir: &AbsolutePath, fixture_path: &Path, fixture_name: &str
163163
let mut cmd = Command::new(&shell_exe);
164164
cmd.arg("-c")
165165
.arg(step.cmd())
166-
.env_clear()
167166
.env("PATH", &e2e_env_path)
168167
.env("NO_COLOR", "1")
169168
.current_dir(e2e_stage_path.join(&e2e.cwd));

0 commit comments

Comments
 (0)