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

Bug in conflict report on composer update #10355

Closed
ThomasLandauer opened this issue Dec 11, 2021 · 3 comments
Closed

Bug in conflict report on composer update #10355

ThomasLandauer opened this issue Dec 11, 2021 · 3 comments
Labels
Milestone

Comments

@ThomasLandauer
Copy link
Contributor

I'm getting this after composer update and the second line seems to be a bug ("X conflicts with X"):

Problem 1

  • Root composer.json requires doctrine/dbal ^3.2 -> satisfiable by doctrine/dbal[3.2.0].
  • easycorp/easyadmin-bundle v3.5.16 conflicts with easycorp/easyadmin-bundle v3.5.16.
  • Root composer.json requires easycorp/easyadmin-bundle ^3.5.16 -> satisfiable by easycorp/easyadmin-bundle[v3.5.16].

I think what should be reported there is what easyadmin-bundle has in its composer.json:

"conflict": {
        "doctrine/dbal": "<2.10 || >=3.0.0"
    },

My composer.json:

"doctrine/dbal": "^3.2",
"easycorp/easyadmin-bundle": "^3.5.16",

Composer version 2.1.14

@ThomasLandauer ThomasLandauer changed the title Bug in conflicts report on composer update Bug in conflict report on composer update Dec 11, 2021
@Seldaek
Copy link
Member

Seldaek commented Dec 18, 2021

It would help if you could share a composer.json that allows reproducing the error.

@Seldaek Seldaek added the Bug label Dec 18, 2021
@Seldaek Seldaek added this to the 2.2 milestone Dec 18, 2021
@ThomasLandauer
Copy link
Contributor Author

There you go:

{
    "name": "thomas-landauer/composer-issue-10355",
    "type": "project",
    "require": {
        "php": "^7.3",
        "doctrine/dbal": "2.9",
        "easycorp/easyadmin-bundle": "^3.5.16"
    },
    "config": {
        "platform": {"php": "7.3"}
    }
}

Output I'm getting from composer install:

Problem 1
- easycorp/easyadmin-bundle v3.5.17 conflicts with easycorp/easyadmin-bundle v3.5.17.
- easycorp/easyadmin-bundle v3.5.16 conflicts with easycorp/easyadmin-bundle v3.5.16.
- Root composer.json requires doctrine/dbal 2.9 -> satisfiable by doctrine/dbal[v2.9.0].
- Root composer.json requires easycorp/easyadmin-bundle ^3.5.16 -> satisfiable by easycorp/easyadmin-bundle[v3.5.16, v3.5.17].

@Seldaek
Copy link
Member

Seldaek commented Dec 19, 2021

Thanks, that was an easy fix it turns out :)

Now getting:


  Problem 1
    - easycorp/easyadmin-bundle v3.5.17 conflicts with doctrine/dbal <2.10.
    - easycorp/easyadmin-bundle v3.5.16 conflicts with doctrine/dbal <2.10 || >=3.0.0.
    - Root composer.json requires doctrine/dbal 2.9 -> satisfiable by doctrine/dbal[v2.9.0].
    - Root composer.json requires easycorp/easyadmin-bundle ^3.5.16 -> satisfiable by easycorp/easyadmin-bundle[v3.5.16, v3.5.17].

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

No branches or pull requests

2 participants