statamic / cli

Install and manage your Statamic projects from the command line.
71 stars 19 forks source link

Conflicts with Symfony console #44

Closed jonassiewertsen closed 2 years ago

jonassiewertsen commented 2 years ago

I just noticed, that there are conflicts with the Symfony console on a fresh installed mac.

  Problem 1
    - Root composer.json requires statamic/cli ^2.1 -> satisfiable by statamic/cli[2.1.0, 2.1.1, 2.1.2].
    - statamic/cli[2.1.0, ..., 2.1.2] require symfony/console ^4.0|^5.0 -> found symfony/console[v4.0.0, ..., v4.4.38, v5.0.0, ..., v5.4.5] but the package is fixed to v6.0.3 (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.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require statamic/cli:*" to figure out if any version is installable, or "composer require statamic/cli:^2.1" if you know which you need.
jasonvarga commented 2 years ago

Can you post the output of composer global why symfony/console ?

jonassiewertsen commented 2 years ago

composer global why symfony/console

mnapoli/silly       1.8.0   requires   symfony/console (~3.0|~4.0|~5.0|~6.0)
symfony/var-dumper  v6.0.3  conflicts  symfony/console (<5.4)

composer global why symfony/var-dumper

tightenco/collect  v8.83.2  requires  symfony/var-dumper (^3.4 || ^4.0 || ^5.0 || ^6.0)

composer global why mnapoli/silly

laravel/valet  v2.18.9  requires  mnapoli/silly (^1.0)

I hope this helps.

I haven't looked into it any further and did use composer create-project statamic/statamic instead, in case anybody is looking for a workaround.

richdynamix commented 2 years ago

I also have similar output and same issue -

laravel/installer    v4.2.10  requires   symfony/console (^4.0|^5.0|^6.0)
laravel/vapor-cli    v1.36.0  requires   symfony/console (^4.2|^5.0|^6.0)
mnapoli/silly        1.8.0    requires   symfony/console (~3.0|~4.0|~5.0|~6.0)
symfony/translation  v6.0.5   conflicts  symfony/console (<5.4)
symfony/var-dumper   v6.0.5   conflicts  symfony/console (<5.4)
symfony/yaml         v6.0.3   conflicts  symfony/console (<5.4
jasonvarga commented 2 years ago

Assuming there are no relevant breaking changes in symfony/console and symfony/process, we can just update our composer.json to include ^6.0.

jesseleite commented 2 years ago

^ Updated dependency in that PR there. Looking back at changelog, I don't think I see any breaking changes that should affect us.