mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 21:28:21 +00:00
Fix prefix issue in init-publish test on Windows
This commit is contained in:
@@ -439,9 +439,10 @@ fn construct_manifest(
|
||||
);
|
||||
let diff = outpath_str
|
||||
.strip_prefix(&manifest_canonicalized)
|
||||
.unwrap_or(&outpath_str);
|
||||
.unwrap_or(&outpath_str)
|
||||
.replace('\\', "/");
|
||||
// Format in UNIX fashion (forward slashes)
|
||||
let relative_str = diff.strip_prefix('/').unwrap_or(diff).replace('\\', "/");
|
||||
let relative_str = diff.strip_prefix('/').unwrap_or(&diff);
|
||||
Path::new(&relative_str).to_path_buf()
|
||||
})
|
||||
.unwrap_or_else(|| Path::new(&format!("{package_name}.wasm")).to_path_buf());
|
||||
|
||||
Reference in New Issue
Block a user