Fake a dev lock when a non-dev update is made and there are actually no dev requirements
parent
d1e502d998
commit
60204f9227
|
@ -226,9 +226,12 @@ class Installer
|
|||
if (!$this->dryRun) {
|
||||
// write lock
|
||||
if ($this->update || !$this->locker->isLocked()) {
|
||||
$devPackages = $this->devMode ? array() : null;
|
||||
$localRepo->reload();
|
||||
|
||||
// if this is not run in dev mode and the root has dev requires, the lock must
|
||||
// contain null to prevent dev installs from a non-dev lock
|
||||
$devPackages = ($this->devMode || !$this->package->getDevRequires()) ? array() : null;
|
||||
|
||||
// split dev and non-dev requirements by checking what would be removed if we update without the dev requirements
|
||||
if ($this->devMode && $this->package->getDevRequires()) {
|
||||
$policy = new DefaultPolicy();
|
||||
|
|
Loading…
Reference in New Issue