diff --git a/lib/cli/src/utils.rs b/lib/cli/src/utils.rs index fc5fa9cc14f..14041120722 100644 --- a/lib/cli/src/utils.rs +++ b/lib/cli/src/utils.rs @@ -13,7 +13,7 @@ pub fn wasmer_should_print_color() -> bool { } fn retrieve_alias_pathbuf(alias: &str, real_dir: &str) -> Result { - let pb = PathBuf::from(&real_dir); + let pb = PathBuf::from(&real_dir).canonicalize()?; if let Ok(pb_metadata) = pb.metadata() { if !pb_metadata.is_dir() { bail!("\"{}\" exists, but it is not a directory", &real_dir);