Browse Source

Add warning for outdated lock file since they cause massive slowdowns

Jordi Boggiano 12 years ago
parent
commit
2de2e953c0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/Composer/Installer.php

+ 4 - 0
src/Composer/Installer.php

@@ -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>');
             }