From ae23647f07932754dc9d7fd1d15657273301a009 Mon Sep 17 00:00:00 2001 From: bilogic <946010+bilogic@users.noreply.github.com> Date: Thu, 10 Mar 2022 03:45:19 +0800 Subject: [PATCH] Create SYMLINKD instead of SYMLINK on Windows host/Linux guest filesystems (#10592) Co-authored-by: bilogic --- src/Composer/Downloader/PathDownloader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Downloader/PathDownloader.php b/src/Composer/Downloader/PathDownloader.php index 7749d1fd7..100a4fbfa 100644 --- a/src/Composer/Downloader/PathDownloader.php +++ b/src/Composer/Downloader/PathDownloader.php @@ -121,9 +121,9 @@ class PathDownloader extends FileDownloader implements VcsCapableDownloaderInter $this->io->writeError(sprintf('Symlinking from %s', $url), false); } if ($transportOptions['relative']) { - $symfonyFilesystem->symlink($shortestPath, $path); + $symfonyFilesystem->symlink($shortestPath.'/', $path); } else { - $symfonyFilesystem->symlink($realUrl, $path); + $symfonyFilesystem->symlink($realUrl.'/', $path); } } } catch (IOException $e) {