Move Updating dependencies to the correct point, which is once we have the pool ready
parent
fec44f883c
commit
30b98915e9
|
@ -386,8 +386,6 @@ class Installer
|
||||||
|
|
||||||
$request = $this->createRequest($this->fixedRootPackage, $platformRepo, $lockedRepository);
|
$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 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) {
|
if ($this->updateMirrors && $lockedRepository) {
|
||||||
foreach ($lockedRepository->getPackages() as $lockedPackage) {
|
foreach ($lockedRepository->getPackages() as $lockedPackage) {
|
||||||
|
@ -411,6 +409,8 @@ class Installer
|
||||||
|
|
||||||
$pool = $repositorySet->createPool($request, $this->io, $this->eventDispatcher);
|
$pool = $repositorySet->createPool($request, $this->io, $this->eventDispatcher);
|
||||||
|
|
||||||
|
$this->io->writeError('<info>Updating dependencies</info>');
|
||||||
|
|
||||||
// solve dependencies
|
// solve dependencies
|
||||||
$solver = new Solver($policy, $pool, $this->io);
|
$solver = new Solver($policy, $pool, $this->io);
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue