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

symfony/console and composer/composer dependancy conflict on Larastan 2.0.0 #1117

Closed
lasselehtinen opened this issue Feb 9, 2022 · 5 comments · Fixed by #1119
Closed

symfony/console and composer/composer dependancy conflict on Larastan 2.0.0 #1117

lasselehtinen opened this issue Feb 9, 2022 · 5 comments · Fixed by #1119

Comments

@lasselehtinen
Copy link

lasselehtinen commented Feb 9, 2022

  • Larastan Version: 2.0.0

Description

When trying to install 2.0.0 with composer require nunomaduro/larastan:^2.0 you get the following error. The issue is with illuminate packages requiring symfony/console ^6.0 where as composer is still limited to ^5.0. Any way around this?

composer/composer[2.2.4, ..., 2.2.6] require symfony/console ^2.8.52 || ^3.4.35 || ^4.4 || ^5.0 -> satisfiable by symfony/console[v2.8.52, v3.4.35, ..., v3.4.47, v4.4.0, ..., v4.4.37, v5.0.0, ..., v5.4.3].
    - You can only install one version of a package, so only one of these can be installed: symfony/console[v5.3.0, ..., v5.4.3, v6.0.0, v6.0.1, v6.0.2, v6.0.3].
    - illuminate/database v9.0.0 requires symfony/console ^6.0 -> satisfiable by symfony/console[v6.0.0, v6.0.1, v6.0.2, v6.0.3].
@szepeviktor
Copy link
Collaborator

Hello Lasse!
I think this is a Laravel versus Composer problem.
What do you think?

@canvural
Copy link
Collaborator

canvural commented Feb 9, 2022

Hi,

Yes I saw similar issue on Twitter. Composer 2.3 will support Symfony 6 but I don't think there is release date yet.

Maybe you can try to use dev version of Composer as a workaround.

Anyway, we only need Composer for the ClassMapGenerator So we can do something like this, until Composer separates it to another package.

Would be great if you can send a PR!

@szepeviktor
Copy link
Collaborator

szepeviktor commented Feb 9, 2022

Maybe you can try to use dev version of Composer as a workaround.

I see!
In our CI:

Locking composer/composer (dev-main ae68ada)

and https://github.com/composer/composer/blob/ae68ada127afc705111f3269f14abe468e152e41/composer.json#L35-L38

@lasselehtinen
Copy link
Author

Yes indeed, you need to allow the dev version of composer by adding the "minimum-stability": "dev" in your composer.json. Then it works just fine.

@canvural
Copy link
Collaborator

canvural commented Feb 9, 2022

Released https://github.com/nunomaduro/larastan/releases/tag/v2.0.1 You can try and see if it's fixed.

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.

3 participants