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

Adding AssertMapper broke webapp for SF 5.4 #14

Open
H4wKs opened this issue Dec 23, 2023 · 3 comments
Open

Adding AssertMapper broke webapp for SF 5.4 #14

H4wKs opened this issue Dec 23, 2023 · 3 comments

Comments

@H4wKs
Copy link

H4wKs commented Dec 23, 2023

Hey guys,

Adding AssertMapper in merge #13 broke webapp for SF 5.4

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires symfony/asset-mapper 5.4.*, found symfony/asset-mapper[v6.3.0-BETA1, ..., 6.4.x-dev, v7.0.0-BETA1, ..., 7.1.x-dev] but it does not match the constraint.

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

To reproduce the problem, install SF 5.4:

composer create-project symfony/skeleton:"^5.4" .
composer require webapp
@weaverryan
Copy link
Member

Hmm. It's a bit of a composer issue, tbh. I wish Composer would know to use the previous tag of symfony/webapp-pack that is compatible with 5.4.

But also, now that 6.4 LTS is out, I'm not sure we should care about starting new projects with 5.4.

So, legitimate situation, but I don't think we can / should change anything.

Cheers!

@H4wKs
Copy link
Author

H4wKs commented Jan 11, 2024

So, legitimate situation, but I don't think we can / should change anything.

I agree. Someone who want to start a new projects with 5.4 instead of 6.4 should just stick to the previous version (1.2.0).
If anyone get this issue, just enforce version 1.2.0 :
composer require webapp:1.2.0

Maybe it would be a good idea to update the documentation in this case, as following the steps here:
https://symfony.com/doc/5.x/setup.html

(Since this specific part of the documentation)

composer create-project symfony/skeleton:"^5.4" my_project_directory
cd my_project_directory
composer require webapp

Is not accurate anymore.

Cheers!

@HypeMC
Copy link

HypeMC commented Feb 8, 2024

@weaverryan I think the conflict option could solve this:

"conflict": {
"symfony/framework-bundle": "<5.0"
}

However, this might mean you'd need to either update the current tag or add two new ones, one removing the asset mapper and the other adding it back with a conflict.

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

No branches or pull requests

3 participants