1
0
Fork 0

Add warning for outdated lock file since they cause massive slowdowns

pull/1352/head
Jordi Boggiano 2012-11-21 17:40:57 +01:00
parent 118e137a91
commit 2de2e953c0
1 changed files with 4 additions and 0 deletions

View File

@ -291,6 +291,10 @@ class Installer
} elseif ($installFromLock) {
$this->io->write('<info>Installing '.($devMode ? 'dev ': '').'dependencies from lock file</info>');
if (!$this->locker->isCompleteFormat($devMode)) {
$this->io->write('<warning>Warning: Your lock file is in a deprecated format. It will most likely take a *long* time for composer to install dependencies, and may cause dependency solving issues.</warning>');
}
if (!$this->locker->isFresh() && !$devMode) {
$this->io->write('<warning>Warning: The lock file is not up to date with the latest changes in composer.json, you may be getting outdated dependencies, run update to update them.</warning>');
}