Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install and get infinite loop by composer #694

Closed
erdalceylan opened this issue Feb 9, 2023 · 3 comments
Closed

install and get infinite loop by composer #694

erdalceylan opened this issue Feb 9, 2023 · 3 comments

Comments

@erdalceylan
Copy link

I'm also trying many computers with symfony 4.4 and 5.4 and sentry-symfony:3.5 and sentry-symfony:4.5 it goes into infinite loop

Example
composer create-project symfony/website-skeleton:"^5.4" test_project
cd test_project
rm composer.lock
composer require sentry/sentry-symfony:^3.5

and I get this infinite loop

OUTPUT :
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Generating optimized autoload files
120 packages you are using are looking for funding.
Use the composer fund command to find out more!
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Restricting packages listed in "symfony/symfony" to "5.4.*"
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove

image

@Jean85
Copy link
Collaborator

Jean85 commented Feb 9, 2023

The issue depends on php-http/discovery 1.15 and the fact that it now brings a Composer plugin, see:

You can work around this by pinning discovery below 1.15, or by allowin/disallowing it explicitly as a plugin in Composer, using composer config --no-plugins allow-plugins.php-http/discovery [true|false] as suggested in php-http/discovery#213 (comment).

@erdalceylan
Copy link
Author

I updated my composer.json file and the problem was fixed thank you @Jean85
"php-http/discovery" : "1.14.3", <- add this line
"sentry/sentry-symfony": "^3.5",

@cleptric
Copy link
Member

For now, we can't really do much on our end besides locking the version to before 1.15, which also has its downsides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants