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

Conflict issue with user-bundle #181

Closed
phansys opened this issue Oct 27, 2017 · 13 comments
Closed

Conflict issue with user-bundle #181

phansys opened this issue Oct 27, 2017 · 13 comments

Comments

@phansys
Copy link
Member

phansys commented Oct 27, 2017

I'm creating this issue in order to track the fact exposed at this comment from @OskarStark at #162.

@phansys
Copy link
Member Author

phansys commented Nov 13, 2017

The tag 2.3.2 already have the changes introduced at #162, but I am not able to install this package alongside sonata-project/user-bundle: 4.0@dev. I pushed a branch sonata_conflicts to my fork of symfony/symfony-standard in order to expose this issue: https://github.com/phansys/symfony-standard/blob/sonata_conflicts/composer.json#L23-L27.
Can somebody give me any clue about this scenario?

$ composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - sonata-project/user-bundle dev-master conflicts with sonata-project/intl-bundle[2.3.2].
    - sonata-project/user-bundle 4.x-dev conflicts with sonata-project/intl-bundle[2.3.0].
    - sonata-project/user-bundle 4.x-dev conflicts with sonata-project/intl-bundle[2.3.1].
    - don't install sonata-project/user-bundle 4.x-dev|install sonata-project/user-bundle dev-master
    - Installation request for sonata-project/user-bundle ^4.0@dev -> satisfiable by sonata-project/user-bundle[4.x-dev].
    - Installation request for sonata-project/intl-bundle ^2.3 -> satisfiable by sonata-project/intl-bundle[2.3.0, 2.3.1, 2.3.2].

Thank you in advance.

@core23
Copy link
Member

core23 commented Nov 14, 2017

cc @soullivaneuh

@phansys
Copy link
Member Author

phansys commented Nov 15, 2017

It seems weird to me, since the conflicting constraint "sonata-project/user-bundle": "<2.0 || >=5.0" should NOT match 4.x-dev, as you can check at https://semver.mwl.be.

@soullivaneuh
Copy link
Member

@phansys
Copy link
Member Author

phansys commented Nov 30, 2017

@soullivaneuh, even with this release, I'm still not able to install these packages together. Could you please check with this composer.json:

{
    "require": {
        "sonata-project/intl-bundle": "^2.4",
        "sonata-project/user-bundle": "4.0@dev"
    }
}
Composer version 1.6-dev (bfed974ae969635e622c4844e5e69526d8459baf) 2017-11-03 22:23:28
$ composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package sonata-project/user-bundle 4.0@dev exists as sonata-project/user-bundle[2.0.0, 2.1.0, 2.1.1, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.x-dev, 3.0.0, 3.0.1, 3.1.0, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.3.0, 3.4.0, 3.5.0, 3.x-dev, dev-master, 4.x-dev] but these are rejected by your constraint.

@soullivaneuh
Copy link
Member

Your log show it's a user-bundle issue AFAIK.

NB: You may try with 4.x-dev.

@phansys
Copy link
Member Author

phansys commented Nov 30, 2017

I've tried with all possible variants, the result is the same. Even, I'm pretty sure that composer doesn't read "-dev" as a stability flag.
Here you are the output for some constraint variants:
"4.x-dev":

$ composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for sonata-project/intl-bundle ^2.4 -> satisfiable by sonata-project/intl-bundle[2.4.0].
    - don't install sonata-project/user-bundle 4.x-dev|install sonata-project/user-bundle dev-master
    - sonata-project/user-bundle dev-master conflicts with sonata-project/intl-bundle[2.4.0].
    - Installation request for sonata-project/user-bundle 4.x-dev -> satisfiable by sonata-project/user-bundle[4.x-dev].

"4.x@dev":

$ composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for sonata-project/intl-bundle ^2.4 -> satisfiable by sonata-project/intl-bundle[2.4.0].
    - don't install sonata-project/user-bundle 4.x-dev|install sonata-project/user-bundle dev-master
    - sonata-project/user-bundle dev-master conflicts with sonata-project/intl-bundle[2.4.0].
    - Installation request for sonata-project/user-bundle 4.x@dev -> satisfiable by sonata-project/user-bundle[4.x-dev].

@soullivaneuh
Copy link
Member

Surely related to this:

"sonata-project/user-bundle": "<2.0 || >=5.0"

But I don't know such more ATM. I'm re-opening.

@soullivaneuh soullivaneuh reopened this Nov 30, 2017
@soullivaneuh soullivaneuh changed the title Create a new release from 2.x branch in order to allow compatibility with sonata-project/user-bundle: 4.0@dev Conflict issue with user-bundle Nov 30, 2017
@phansys
Copy link
Member Author

phansys commented Nov 30, 2017

Of course @soullivaneuh, I've mentioned that on a previous comment, but that constraint should not conflict these versions AFAIK.

@soullivaneuh
Copy link
Member

Maybe it works not very well with dev versions. Maybe we should remove the || >=5.0 part. cc @sonata-project/contributors

@phansys
Copy link
Member Author

phansys commented Nov 30, 2017

In fact, I am currently using a fork with that part removed https://github.com/phansys/SonataIntlBundle/blob/7b71381c531caa8a92e7723ea191f7a03bb02431/composer.json#L36-L38;
but I think it could be a issue with the resolution performed by Composer around conflict constraints.

@nico-dangerous
Copy link

Hi,
I don't understand why we have to wait for a potential 6.0.0 version of Sonata User bundle.
With conflict >= 5.0.0, we can't even use it with the dev version of user bundle.

Is anyone from sonata floowing this ?

@jordisala1991
Copy link
Member

Do you know that user-bundle is already stable on 4.0? Try 4.0.0

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

5 participants