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

create-project yields different result between v1 & v2 #9292

Closed
nicolas-grekas opened this issue Oct 15, 2020 · 3 comments
Closed

create-project yields different result between v1 & v2 #9292

nicolas-grekas opened this issue Oct 15, 2020 · 3 comments

Comments

@nicolas-grekas
Copy link
Contributor

composer create-project symfony/skeleton test-cc 5.2.x-dev

this installs the beta of symfony components with composer v2, and installs them in their 5.x state with composer v1.
Both behaviors can be argued as correct. Which one is desired? I'm reporting in case this is unexpected.

@Seldaek
Copy link
Member

Seldaek commented Oct 15, 2020

composer update --no-plugins in test-cc installs the 5.x-dev then, so I am suspecting this is a flex compat issue with v2.. Most likely it's filtering too much still, or something along those lines. Do you really need this version filtering? Is it really that valuable for v2 still?

@nicolas-grekas
Copy link
Contributor Author

I am suspecting this is a flex compat issue with v2

Oh, some filtering in flex which happens differently on v1, thanks for having a look, it's on me now.

Do you really need this version filtering? Is it really that valuable for v2 still?

Yes, it's critical to control the version of transitive symfony packages.

@Seldaek
Copy link
Member

Seldaek commented Oct 15, 2020

I am guessing that the issue is you filter on 5.2.* and 5.x-dev resolves to 5.9999999.9999999.9999999-dev which is not in 5.2.*. I am not sure why that'd work in composer 1 though.

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

2 participants