From c362d001f104aeece7b764397e21381cd427f57c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 7 Nov 2020 11:17:22 +0100 Subject: [PATCH] Fix regression handling installs with custom installers not passing a fully qualified path to downloaders, fixes #9431, fixes #9434 --- src/Composer/Downloader/ArchiveDownloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Downloader/ArchiveDownloader.php b/src/Composer/Downloader/ArchiveDownloader.php index 213f59c20..f5e84065c 100644 --- a/src/Composer/Downloader/ArchiveDownloader.php +++ b/src/Composer/Downloader/ArchiveDownloader.php @@ -63,7 +63,7 @@ abstract class ArchiveDownloader extends FileDownloader // 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) !== getcwd()) { - $this->addCleanupPath($package, realpath($path)); + $this->addCleanupPath($package, $path); } $this->filesystem->ensureDirectoryExists($temporaryDir);