r/symfony•
pfsalter

Is there a way to skip flex during composer installs?

Help

Edit: So, thanks to u/z01d, there's a helpful blog post here: https://symfony.com/blog/upgrade-flex-on-your-symfony-projects

So it looks like flex.symfony.com is currently down, the DNS isn't resolving https://dnschecker.org/#A/flex.symfony.com . This is a problem because it stops us from being able to do composer installs.

$ composer ins --no-scripts
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
The following exception probably indicates you have misconfigured DNS resolver(s)

In CurlDownloader.php line 375:
                                                                                                                   
  curl error 6 while downloading https://flex.symfony.com/versions.json: Could not resolve host: flex.symfony.com  
                                                                                                                   

Anyone know of any mitigations around this? Really don't want to be in a situation where we can't deploy because of this.

Posted Jun 15, 2022, 9:16 AM UTC · edited

02
hitsujiTMO•
12
Jean1985•

That is the correct fix, but if you're in a hurry and you just want to do a composer install (maybe for an emergency deploy?) you just need to disable plugins with composer install --no-plugins

1