Suggest running composer (install|update) with --no-dev
authorReedy <reedy@wikimedia.org>
Sat, 11 Nov 2017 01:37:10 +0000 (01:37 +0000)
committerReedy <reedy@wikimedia.org>
Sat, 11 Nov 2017 01:37:10 +0000 (01:37 +0000)
Change-Id: I1a931b6ac2767aedfc4c71a0ddac460bd3322484

maintenance/checkComposerLockUpToDate.php

index b504bde..e5b4c13 100644 (file)
@@ -25,7 +25,7 @@ class CheckComposerLockUpToDate extends Maintenance {
                        $lockLocation = "$IP/vendor/composer.lock";
                        if ( !file_exists( $lockLocation ) ) {
                                $this->error(
                        $lockLocation = "$IP/vendor/composer.lock";
                        if ( !file_exists( $lockLocation ) ) {
                                $this->error(
-                                       'Could not find composer.lock file. Have you run "composer install"?',
+                                       'Could not find composer.lock file. Have you run "composer install --no-dev"?',
                                        1
                                );
                        }
                                        1
                                );
                        }
@@ -53,7 +53,7 @@ class CheckComposerLockUpToDate extends Maintenance {
                if ( $found ) {
                        $this->error(
                                'Error: your composer.lock file is not up to date. ' .
                if ( $found ) {
                        $this->error(
                                'Error: your composer.lock file is not up to date. ' .
-                                       'Run "composer update" to install newer dependencies',
+                                       'Run "composer update --no-dev" to install newer dependencies',
                                1
                        );
                } else {
                                1
                        );
                } else {