Setono / SyliusGiftCardPlugin

Sell gift cards on your Sylius store and let users use them in the checkout process
MIT License
44 stars 39 forks source link

[Bug]: Dependency issue with Symfony 6 #255

Closed TalkMarc closed 8 months ago

TalkMarc commented 8 months ago

Plugin version

0.12.0-alpha.4

Sylius version

1.12.10

What happened?

When trying to install the pre-release version (v0.12) composer reports a requirements issue. The Plugin requires sylius/mailer-bundle ^1.6 but only version 2.0 of the mailer bundle supports Symfony 6.

Relevant log output

$ composer require setono/sylius-gift-card-plugin:^0.12
./composer.json has been updated
Running composer update setono/sylius-gift-card-plugin
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - setono/sylius-gift-card-plugin[v0.12.0-alpha, ..., v0.12.0-alpha.3] require doctrine/dbal ^2.13 -> found doctrine/dbal[2.13.0, ..., 2.13.9] but the package is fixed to 3.6.6 (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.
    - setono/sylius-gift-card-plugin[v0.12.0-alpha.4, ..., 0.12.x-dev] require sylius/mailer-bundle ^1.6 -> found sylius/mailer-bundle[dev-master, v1.6.0, ..., 1.8.x-dev (alias of dev-master)] but the package is fixed to v2.0.0 (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.
    - Root composer.json requires setono/sylius-gift-card-plugin ^0.12 -> satisfiable by setono/sylius-gift-card-plugin[v0.12.0-alpha, ..., 0.12.x-dev].

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.
loevgaard commented 8 months ago

Fixed in https://github.com/Setono/SyliusGiftCardPlugin/pull/257