Эх сурвалжийг харах

trim trailng slash from symlink names

symlink names are not allowed to contain
a trailing slash, so trim it.
Christoph Herbst 9 жил өмнө
parent
commit
cbfd83ba0e

+ 1 - 0
src/Composer/Downloader/PathDownloader.php

@@ -84,6 +84,7 @@ class PathDownloader extends FileDownloader
                         $absolutePath = getcwd() . DIRECTORY_SEPARATOR . $path;
                     }
                     $shortestPath = $this->filesystem->findShortestPath($absolutePath, $realUrl);
+                    $path = rtrim($path,"/");
                     $fileSystem->symlink($shortestPath, $path);
                     $this->io->writeError(sprintf('    Symlinked from %s', $url));
                 }