Merge pull request #9336 from helhum/fix-require-with-no-lock

Correctly avoid partial updates in require commands
main
Nils Adermann 4 years ago committed by GitHub
commit e090274db0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -314,7 +314,7 @@ EOT
// if no lock is present, or the file is brand new, we do not do a
// partial update as this is not supported by the Installer
if (!$this->firstRequire && $composer->getConfig()->get('lock')) {
if (!$this->firstRequire && $composer->getLocker()->isLocked()) {
$install->setUpdateAllowList(array_keys($requirements));
}

Loading…
Cancel
Save