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

rm vcs repo target dir before install

Ken Marfilla 13 жил өмнө
parent
commit
3e6c8caae7

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

@@ -51,6 +51,7 @@ abstract class VcsDownloader implements DownloaderInterface
         }
 
         $this->io->write("  - Package <info>" . $package->getName() . "</info> (<comment>" . $package->getPrettyVersion() . "</comment>)");
+        $this->filesystem->removeDirectory($path);
         $this->doDownload($package, $path);
         $this->io->write('');
     }