From 2de2e953c0dda6af8f02ff1505a133918f7fe458 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 21 Nov 2012 17:40:57 +0100 Subject: [PATCH] Add warning for outdated lock file since they cause massive slowdowns --- src/Composer/Installer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 5175105ed..b828836bc 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -291,6 +291,10 @@ class Installer } elseif ($installFromLock) { $this->io->write('Installing '.($devMode ? 'dev ': '').'dependencies from lock file'); + if (!$this->locker->isCompleteFormat($devMode)) { + $this->io->write('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.'); + } + if (!$this->locker->isFresh() && !$devMode) { $this->io->write('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.'); }