Skip to content

Commit 9c4102a

Browse files
authored
chore: use sys_traits to canonicalize (#32309)
1 parent 745f7d9 commit 9c4102a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cli/rt/binary.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ use deno_npm::resolution::ValidSerializedNpmResolutionSnapshot;
3636
use deno_semver::StackString;
3737
use deno_semver::package::PackageReq;
3838
use indexmap::IndexMap;
39+
use sys_traits::FsCanonicalize;
3940
use sys_traits::FsRead;
4041
use thiserror::Error;
4142

@@ -67,9 +68,8 @@ pub fn extract_standalone(
6768
// so that module specifiers resolve to extracted file paths
6869
let root_path = if let Some(hash) = &metadata.self_extracting {
6970
let dir = choose_and_create_extraction_dir(hash)?;
70-
dir
71-
.canonicalize()
72-
.map(deno_path_util::strip_unc_prefix)
71+
sys_traits::impls::RealSys
72+
.fs_canonicalize(&dir)
7373
.unwrap_or(dir)
7474
} else {
7575
let maybe_current_exe = std::env::current_exe().ok();

0 commit comments

Comments
 (0)