Skip to content

Commit 8d3e9df

Browse files
branchseerclaude
andcommitted
Avoid canonicalize when resolving repo root in e2e test runner
Use parent().parent() instead of canonicalize() to find the repo root from CARGO_MANIFEST_DIR. Avoids resolving symlinks which can cause issues on some CI environments. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 7646aec commit 8d3e9df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/vite_task_bin/tests/e2e_snapshots

crates/vite_task_bin/tests/e2e_snapshots/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ fn main() {
435435

436436
// Copy .node-version to the tmp dir so version manager shims can resolve the correct
437437
// Node.js binary when running task commands.
438-
let repo_root = manifest_dir.join("../..").canonicalize().unwrap();
438+
let repo_root = manifest_dir.parent().unwrap().parent().unwrap();
439439
std::fs::copy(repo_root.join(".node-version"), tmp_dir.path().join(".node-version"))
440440
.unwrap();
441441

0 commit comments

Comments
 (0)