Skip to content

Symfony 6.1 compatibility #137

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
jskowronski39 opened this issue Jul 4, 2022 · 7 comments
Closed

Symfony 6.1 compatibility #137

jskowronski39 opened this issue Jul 4, 2022 · 7 comments

Comments

@jskowronski39
Copy link

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
Copy link

afiocre commented Aug 2, 2022

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

@martincodes-de
Copy link

Does anyone know how to fix it?

@jerowork
Copy link

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

@jroszkiewicz
Copy link

@jerowork bump bump, pr is merged :]

@jerowork
Copy link

@jroszkiewicz PR thecodingmachine/graphqlite-symfony-validator-bridge#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
Copy link
Member

nguyenk commented Mar 20, 2023

@jskowronski39 can we close this ?

@nguyenk
Copy link
Member

nguyenk commented Mar 20, 2023

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.

@nguyenk nguyenk closed this as completed Mar 20, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants