aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/downloader/archive_downloader.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-19 00:10:22 +0900
committernsfisis <nsfisis@gmail.com>2026-05-19 00:11:03 +0900
commitc839244d8d09f3036ebfee8eef7eb6b147e593ab (patch)
treefe48c94f2c2e62468beef5ff1a8f3cff6adeef4f /crates/shirabe/src/downloader/archive_downloader.rs
parent48839250146b217e2756ed3c0e624fd341b54d6c (diff)
downloadphp-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.tar.gz
php-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.tar.zst
php-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.zip
fix(compile): fix various compile errors
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/downloader/archive_downloader.rs')
-rw-r--r--crates/shirabe/src/downloader/archive_downloader.rs4
1 files changed, 2 insertions, 2 deletions
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()