From 2ca2ec3d0ae77bbadc8a4c60180c7770bddc4b32 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 15 Oct 2020 09:53:12 +0200 Subject: [PATCH] Allow loading flex main branch --- src/Composer/Plugin/PluginManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Plugin/PluginManager.php b/src/Composer/Plugin/PluginManager.php index 1a1b08b8e..0b5800e2d 100644 --- a/src/Composer/Plugin/PluginManager.php +++ b/src/Composer/Plugin/PluginManager.php @@ -150,7 +150,7 @@ class PluginManager return; } - if ($package->getName() === 'symfony/flex' && version_compare($package->getVersion(), '1.9.8', '<')) { + if ($package->getName() === 'symfony/flex' && version_compare($package->getVersion(), '1.9.8', '<') && $package->getVersion() !== 'dev-main') { $this->io->writeError('The "' . $package->getName() . '" plugin was skipped because it is not compatible with Composer 2+. Make sure to update it to version 1.9.8 or greater.'); return;