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

2.0 not usable with symfony 5.4 (twig-bundle conflict) #214

Closed
codegain opened this issue May 30, 2023 · 1 comment · Fixed by #217
Closed

2.0 not usable with symfony 5.4 (twig-bundle conflict) #214

codegain opened this issue May 30, 2023 · 1 comment · Fixed by #217

Comments

@codegain
Copy link

Hi,

I wanted to upgrade to version 2 on my PHP 8.1 and symfony 5.4 project, but it's not possible because of this conflict:

[]$ composer upgrade -W
Loading composer repositories with package information                                                          Restricting packages listed in "symfony/symfony" to "5.4.*"
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires symfony/twig-bundle 5.4.* -> satisfiable by symfony/twig-bundle[v5.4.0, ..., v5.4.21].
    - symfony/webpack-encore-bundle v2.0.0 requires symfony/service-contracts ^3.0 -> satisfiable by symfony/service-contracts[v3.0.0, ..., v3.2.1].
    - symfony/twig-bundle[v5.4.0, ..., v5.4.21] conflict with symfony/service-contracts v3.2.1.
    - symfony/twig-bundle[v5.4.0, ..., v5.4.21] conflict with symfony/service-contracts v3.0.2.
    - Root composer.json requires symfony/webpack-encore-bundle ^2.0 -> satisfiable by symfony/webpack-encore-bundle[v2.0.0].

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

In fact, twig-bundle 5.4.* does conflict with symfony/service-contracts v3 which is required by webpack-encore-bundle:

https://github.com/symfony/twig-bundle/blob/v5.4.21/composer.json#L46
https://github.com/symfony/webpack-encore-bundle/blob/2.x/composer.json#L18

Is there any way to upgrade to v2.0 with twig in a symfony 5.4 project?

@weaverryan
Copy link
Member

I'll check into this - we can definitely relax that requirement - I didn't realize 5.4 was conflicting with it.

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

Successfully merging a pull request may close this issue.

2 participants