Skip to content

Commit

Permalink
fix path normalization on Windows in WASM32 environment
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Jul 17, 2023
1 parent e8be887 commit b41e935
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion daemon/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub async fn locate_binaries(root: &str, name: &str) -> Result<Vec<PathBuf>> {

let locations = LOCATIONS
.iter()
.map(|path| PathBuf::from(&root).join(path).join(&name).absolute().map_err(|e| e.into()))
.map(|path| PathBuf::from(&root).join(path).join(&name).normalize().map_err(|e| e.into()))
.collect::<Result<Vec<_>>>()?;

let mut list = Vec::new();
Expand Down

0 comments on commit b41e935

Please sign in to comment.