Skip to content

Commit

Permalink
Avoid using an invalid path for InstalledFilesystemRepo in create-pro…
Browse files Browse the repository at this point in the history
…ject and use an array repo instead, fixes #10020, fixes #10021
  • Loading branch information
Seldaek committed Jul 23, 2021
1 parent 1f44010 commit deb4c48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Composer/Command/CreateProjectCommand.php
Expand Up @@ -25,7 +25,7 @@
use Composer\Repository\RepositoryFactory;
use Composer\Repository\CompositeRepository;
use Composer\Repository\PlatformRepository;
use Composer\Repository\InstalledFilesystemRepository;
use Composer\Repository\InstalledArrayRepository;
use Composer\Repository\RepositorySet;
use Composer\Script\ScriptEvents;
use Composer\Util\Silencer;
Expand Down Expand Up @@ -439,7 +439,7 @@ protected function installRootPackage(IOInterface $io, Config $config, $packageN
$im = $composer->getInstallationManager();
$im->setOutputProgress(!$noProgress);
$im->addInstaller($projectInstaller);
$im->execute(new InstalledFilesystemRepository(new JsonFile('php://memory')), array(new InstallOperation($package)));
$im->execute(new InstalledArrayRepository(), array(new InstallOperation($package)));
$im->notifyInstalls($io);

// collect suggestions
Expand Down

0 comments on commit deb4c48

Please sign in to comment.