From c839244d8d09f3036ebfee8eef7eb6b147e593ab Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 May 2026 00:10:22 +0900 Subject: fix(compile): fix various compile errors Co-Authored-By: Claude Sonnet 4.6 --- crates/shirabe/src/downloader/archive_downloader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/src/downloader/archive_downloader.rs') diff --git a/crates/shirabe/src/downloader/archive_downloader.rs b/crates/shirabe/src/downloader/archive_downloader.rs index 03edffe..02cd8a9 100644 --- a/crates/shirabe/src/downloader/archive_downloader.rs +++ b/crates/shirabe/src/downloader/archive_downloader.rs @@ -99,7 +99,7 @@ pub trait ArchiveDownloader { self.inner_mut().add_cleanup_path(package, &temporary_dir); // avoid cleaning up $path if installing in "." for eg create-project as we can not // delete the directory we are currently in on windows - if !is_dir(path) || realpath(path) != Platform::get_cwd() { + if !is_dir(path) || realpath(path) != Platform::get_cwd(false).unwrap_or_default() { self.inner_mut().add_cleanup_path(package, path); } @@ -116,7 +116,7 @@ pub trait ArchiveDownloader { // clean up filesystem.remove_directory(&temporary_dir); - if is_dir(path) && realpath(path) != Platform::get_cwd() { + if is_dir(path) && realpath(path) != Platform::get_cwd(false).unwrap_or_default() { filesystem.remove_directory(path); } self.inner_mut() -- cgit v1.3.1