1
0
Fork 0

Move Updating dependencies to the correct point, which is once we have the pool ready

pull/9461/head
Jordi Boggiano 2020-11-11 11:30:37 +01:00
parent fec44f883c
commit 30b98915e9
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 2 deletions

View File

@ -386,8 +386,6 @@ class Installer
$request = $this->createRequest($this->fixedRootPackage, $platformRepo, $lockedRepository);
$this->io->writeError('<info>Updating dependencies</info>');
// if we're updating mirrors we want to keep exactly the same versions installed which are in the lock file, but we want current remote metadata
if ($this->updateMirrors && $lockedRepository) {
foreach ($lockedRepository->getPackages() as $lockedPackage) {
@ -411,6 +409,8 @@ class Installer
$pool = $repositorySet->createPool($request, $this->io, $this->eventDispatcher);
$this->io->writeError('<info>Updating dependencies</info>');
// solve dependencies
$solver = new Solver($policy, $pool, $this->io);
try {