From acdb7638a83ca1d6f5c1e0b9389a26c423f53ef5 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 7 Aug 2017 16:32:04 +0200 Subject: [PATCH] Warn about require-dev not being ignored when an update --no-dev fails to resolve dependencies, fixes #6575 --- src/Composer/Installer.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 5d70832b2..ca7deb3ac 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -473,6 +473,9 @@ class Installer } catch (SolverProblemsException $e) { $this->io->writeError('Your requirements could not be resolved to an installable set of packages.', true, IOInterface::QUIET); $this->io->writeError($e->getMessage()); + if ($this->update && !$this->devMode) { + $this->io->writeError('Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.', true, IOInterface::QUIET); + } return array(max(1, $e->getCode()), array()); }