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

Cannot install with doctrine/collections 1.0 #52

Closed
tacman opened this issue Apr 5, 2024 · 8 comments · Fixed by #53
Closed

Cannot install with doctrine/collections 1.0 #52

tacman opened this issue Apr 5, 2024 · 8 comments · Fixed by #53

Comments

@tacman
Copy link
Contributor

tacman commented Apr 5, 2024

symfony new --webapp polyglot-test && cd polyglot-test
composer require webfactory/polyglot-bundle
Running composer update webfactory/polyglot-bundle
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - webfactory/polyglot-bundle[1.0.0, ..., 1.2.0, 2.0.0, ..., 2.1.0] require doctrine/orm ~2.2 -> found doctrine/orm[2.2.0, ..., 2.19.3] but it conflicts with your root composer.json require (^3.1).
    - webfactory/polyglot-bundle[1.1.1, ..., 1.1.3] require php ^5.5 | ^7.0 -> your php version (8.3.4) does not satisfy that requirement.
    - webfactory/polyglot-bundle[2.1.1, ..., 2.2.0] require php ^7.2 -> your php version (8.3.4) does not satisfy that requirement.
    - webfactory/polyglot-bundle[2.3.0, ..., 2.4.0] require php ^7.2|8.0.*|8.1.* -> your php version (8.3.4) does not satisfy that requirement.
    - webfactory/polyglot-bundle[2.5.0, 3.0.0, ..., 3.2.0, 4.0.0] require doctrine/collections ^1.0 -> found doctrine/collections[v1.0, ..., 1.8.0] but the package is fixed to 2.2.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires webfactory/polyglot-bundle * -> satisfiable by webfactory/polyglot-bundle[1.0.0, ..., 1.2.0, 2.0.0, ..., 2.5.0, 3.0.0, 3.1.0, 3.1.1, 3.2.0, 4.0.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require webfactory/polyglot-bundle:*" to figure out if any version is installable, or "composer require webfactory/polyglot-bundle:^2.1" if you know which you need.

tacman added a commit to tacman/WebfactoryPolyglotBundle that referenced this issue Apr 5, 2024
@mpdude
Copy link
Member

mpdude commented Apr 5, 2024

Are you sure doctrine/collections 2.x will be enough to fix this? Or will we need ORM 3.x support as well?

@tacman
Copy link
Contributor Author

tacman commented Apr 5, 2024 via email

@tacman
Copy link
Contributor Author

tacman commented Apr 5, 2024

At a short-term solution, we could simply use "*" for doctrine packages, and let composer figure it out. Obviously, we need to be explicit eventually, but right now I can't install it at all in my Symfony 7 projects.

I guess I could remove doctrine, add this bundle, then add doctrine back, and hope that composer picks the right versions?

mpdude pushed a commit to tacman/WebfactoryPolyglotBundle that referenced this issue Apr 7, 2024
@mpdude mpdude closed this as completed in #53 Apr 7, 2024
@mpdude mpdude reopened this Apr 7, 2024
@mpdude
Copy link
Member

mpdude commented Apr 7, 2024

Could you please re-check whether this is fixed with the 4.0.1 release of this bundle?

@tacman
Copy link
Contributor Author

tacman commented Apr 7, 2024

No, because of psr/log

    - webfactory/polyglot-bundle[dev-attribute-support, 3.0.0, ..., 3.2.0] require psr/log ^1.0 -> satisfiable by psr/log[1.0.0, ..., 1.1.4].
    - You can only install one version of a package, so only one of these can be installed: psr/log[1.0.0, ..., 1.1.4, 2.0.0, 3.0.0, 3.x-dev].
    - monolog/monolog[3.0.0-RC1, ..., 3.x-dev] require psr/log ^2.0 || ^3.0 -> satisfiable by psr/log[2.0.0, 3.0.0, 3.x-dev].

@mpdude
Copy link
Member

mpdude commented Apr 8, 2024

Merged #55.

@tacman
Copy link
Contributor Author

tacman commented Apr 8, 2024

Wahoo, it installs! Can you publish 4.0.2 please?

@mpdude
Copy link
Member

mpdude commented Apr 9, 2024

Released as 4.1.0 🚀

Thanks for bringing this forward!

@mpdude mpdude closed this as completed Apr 9, 2024
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

Successfully merging a pull request may close this issue.

2 participants