1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Add warnings when running updates without curl enabled, fixes #9558

This commit is contained in:
Jordi Boggiano 2021-01-12 14:55:55 +01:00
parent 57117384df
commit 4a740e3e61
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
3 changed files with 12 additions and 2 deletions

View file

@ -19,6 +19,7 @@ use Composer\IO\IOInterface;
use Composer\Plugin\CommandEvent;
use Composer\Plugin\PluginEvents;
use Composer\Package\Version\VersionParser;
use Composer\Util\HttpDownloader;
use Composer\Semver\Constraint\MultiConstraint;
use Composer\Package\Link;
use Symfony\Component\Console\Helper\Table;
@ -114,6 +115,10 @@ EOT
$composer = $this->getComposer(true, $input->getOption('no-plugins'));
if (!HttpDownloader::isCurlEnabled()) {
$io->writeError('<warning>Composer is operating significantly slower than normal because you do not have the PHP curl extension enabled.</warning>');
}
$packages = $input->getArgument('packages');
$reqs = $this->formatRequirements($input->getOption('with'));