1
0
Fork 0

Create SYMLINKD instead of SYMLINK on Windows host/Linux guest filesystems (#10592)

Co-authored-by: bilogic <bilogic@example.com>
pull/10604/head
bilogic 2022-03-10 03:45:19 +08:00 committed by GitHub
parent 575fbfb53f
commit ae23647f07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) {