Coder Social home page Coder Social logo

Comments (13)

phansys avatar phansys commented on May 21, 2024 2

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.

from sonataintlbundle.

soullivaneuh avatar soullivaneuh commented on May 21, 2024 1

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

from sonataintlbundle.

jordisala1991 avatar jordisala1991 commented on May 21, 2024 1

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

from sonataintlbundle.

core23 avatar core23 commented on May 21, 2024

cc @soullivaneuh

from sonataintlbundle.

phansys avatar phansys commented on May 21, 2024

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.

from sonataintlbundle.

soullivaneuh avatar soullivaneuh commented on May 21, 2024

https://github.com/sonata-project/SonataIntlBundle/releases/tag/2.4.0

from sonataintlbundle.

phansys avatar phansys commented on May 21, 2024

@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.

from sonataintlbundle.

soullivaneuh avatar soullivaneuh commented on May 21, 2024

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

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

from sonataintlbundle.

phansys avatar phansys commented on May 21, 2024

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].

from sonataintlbundle.

soullivaneuh avatar soullivaneuh commented on May 21, 2024

Surely related to this:

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

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

from sonataintlbundle.

phansys avatar phansys commented on May 21, 2024

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

from sonataintlbundle.

phansys avatar phansys commented on May 21, 2024

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.

from sonataintlbundle.

nico-dangerous avatar nico-dangerous commented on May 21, 2024

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 ?

from sonataintlbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.