1
0
Fork 0

Include dev packages in locked package listings for show command

pull/9035/head
Jordi Boggiano 2020-07-01 11:17:52 +02:00
parent 70f211923b
commit ee4afa29e7
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ EOT
$localRepo = $composer->getRepositoryManager()->getLocalRepository(); $localRepo = $composer->getRepositoryManager()->getLocalRepository();
$locker = $composer->getLocker(); $locker = $composer->getLocker();
if ($locker->isLocked()) { if ($locker->isLocked()) {
$lockedRepo = $locker->getLockedRepository(); $lockedRepo = $locker->getLockedRepository(true);
$installedRepo = new InstalledRepository(array($lockedRepo, $localRepo, $platformRepo)); $installedRepo = new InstalledRepository(array($lockedRepo, $localRepo, $platformRepo));
} else { } else {
$installedRepo = new InstalledRepository(array($localRepo, $platformRepo)); $installedRepo = new InstalledRepository(array($localRepo, $platformRepo));
@ -191,7 +191,7 @@ EOT
throw new \UnexpectedValueException('A valid composer.json and composer.lock files is required to run this command with --locked'); throw new \UnexpectedValueException('A valid composer.json and composer.lock files is required to run this command with --locked');
} }
$locker = $composer->getLocker(); $locker = $composer->getLocker();
$lockedRepo = $locker->getLockedRepository(); $lockedRepo = $locker->getLockedRepository(true);
$installedRepo = new InstalledRepository(array($lockedRepo)); $installedRepo = new InstalledRepository(array($lockedRepo));
$repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories())); $repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories()));
} else { } else {