thecodingmachine / graphqlite-bundle

A Symfony bundle for thecodingmachine/graphqlite.
34 stars 37 forks source link

Symfony 6.1 compatibility #137

Closed jskowronski39 closed 1 year ago

jskowronski39 commented 2 years ago

Bundle cannot be installed on a fresh Symfony 6.1.2 project (full version). Error I'm getting:

/srv/app # composer require thecodingmachine/graphqlite-bundle ^5.4
./composer.json has been updated
Running composer update thecodingmachine/graphqlite-bundle
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - thecodingmachine/graphqlite[v5.0.0, ..., v5.0.3] require psr/container ^1 -> found psr/container[1.0.0, 1.1.0, 1.1.1, 1.1.2] but the package is fixed to 2.0.2 (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.
    - thecodingmachine/graphqlite-bundle v5.4.0 requires thecodingmachine/graphqlite ^5.0 -> satisfiable by thecodingmachine/graphqlite[v5.0.0, v5.0.1, v5.0.2, v5.0.3].
    - Root composer.json requires thecodingmachine/graphqlite-bundle ^5.4 -> satisfiable by thecodingmachine/graphqlite-bundle[v5.4.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Adding -W option doesn't help either:

/srv/app # composer require -W thecodingmachine/graphqlite-bundle ^5.4
./composer.json has been updated
Running composer update thecodingmachine/graphqlite-bundle --with-all-dependencies
Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "6.1.*"
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - thecodingmachine/graphqlite-symfony-validator-bridge v5.0.0 requires symfony/validator ^4.2 | ^5 -> found symfony/validator[v4.2.0, ..., v4.4.43, v5.0.0, ..., v5.4.10] but it conflicts with your root composer.json require (6.1.*).
    - thecodingmachine/graphqlite-bundle v5.4.0 requires thecodingmachine/graphqlite-symfony-validator-bridge ^5.0 -> satisfiable by thecodingmachine/graphqlite-symfony-validator-bridge[v5.0.0].
    - Root composer.json requires thecodingmachine/graphqlite-bundle ^5.4 -> satisfiable by thecodingmachine/graphqlite-bundle[v5.4.0].

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
afiocre commented 2 years ago

Same problem, can't install with Symfony 6.X

martincodes-de commented 1 year ago

Does anyone know how to fix it?

jerowork commented 1 year ago

I've created a PR https://github.com/thecodingmachine/graphqlite-symfony-validator-bridge/pull/65 to upgrade the bridge to SF6 as well, as that breaks this package v5.4

jroszkiewicz commented 1 year ago

@jerowork bump bump, pr is merged :]

jerowork commented 1 year ago

@jroszkiewicz PR https://github.com/thecodingmachine/graphqlite-symfony-validator-bridge/pull/65 is already merged and added to a new release, 5.0.1. thecodingmachine/graphqlite-bundle already has ^5.0 in its composer.json, so that should work with the latest version already :)

nguyenk commented 1 year ago

@jskowronski39 can we close this ?

nguyenk commented 1 year ago

Hey folks I just drafted realease v6.0.0-beta.0

As I'm not using the bundle in any project right now, I'd need you to test. I just made is possible to instal, and fixed the CI, so please report, or event better submit a PR for fixes.