Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Console] Runtime conflict for psr/log >= 3.0 instead of composer conflict#43884

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@fancyweb
Copy link
Contributor

QA
Branch?5.3
Bug fix?yes
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

ConsoleLogger is not compatible withpsr/log >= 3.0 but it's an optional feature andpsr/log is an optional dependency in the Console component. Yet, having a real "composer conflict", preventssymfony/console from being updated above the5.3.2 version if a previous dependency has already installedpsr/log 3.0. But I'd rather have an updatedsymfony/console version andpsr/log 2.0 since thepsr/log changes are just about types.

@fancywebfancywebforce-pushed theconsole/remove-psr-log-conflict branch fromc0b3a60 to7af9ba0CompareNovember 2, 2021 11:20
@stof
Copy link
Member

stof commentedNov 2, 2021

Well, to me, letting the solver know about the conflict is better than forcing the user to manage dependencies manually.

Cases where the latest versions of packages are incompatible together need to be resolved by the user anyway to choose which requirement they want to relax, but that's only happening properly if the solver knows about the incompatibility.
Andcomposer why-not symfony/console 5.3.7 will tell you why you don't get the 5.3.7 version for instance.

Copy link
Member

@derrabusderrabus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think, no matter how we deal with this issue, there will be a group of people dissatisfied with our solution. Currently, we have a well documented incompatibility that should be easy to resolve. Moving this to a runtime check feels like we're doing the job Composer should've done.

I'm not convinced we should make this change.

@nicolas-grekas
Copy link
Member

nicolas-grekas commentedNov 2, 2021
edited
Loading

Shouldn't we have a mix here? This exception in 5.3 and the conflict in 5.4?
Since 5.3.2 is already tagged without the conflict, the harm is already done for 5.3.

What about moving the check to the constructor though?

@derrabus
Copy link
Member

Since 5.3.2 is already tagged without the conflict, the harm is already done for 5.3.

Good point. If we restore the conflict in 5.4, I'm 👍

What about moving the check to the constructor though?

That wouldn't work because the class definition itself raises a fatal error, doesn't it?

fancyweb, nicolas-grekas, and xabbuh reacted with thumbs up emoji

@fabpot
Copy link
Member

Thank you@fancyweb.

@fabpotfabpot merged commitb1f290a intosymfony:5.3Nov 3, 2021
@fancywebfancyweb deleted the console/remove-psr-log-conflict branchNovember 3, 2021 07:59
nicolas-grekas added a commit that referenced this pull requestNov 3, 2021
This PR was merged into the 5.4 branch.Discussion----------[Console] Restore psr/log >= 3.0 conflict| Q             | A| ------------- | ---| Branch?       | 5.4| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       |#43884 (comment)| License       | MIT| Doc PR        | -Commits-------5c65796 [Console] Restore psr/log >= 3.0 conflict
@fabpotfabpot mentioned this pull requestNov 22, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@derrabusderrabusderrabus approved these changes

@chalasrchalasrAwaiting requested review from chalasrchalasr is a code owner

@dunglasdunglasAwaiting requested review from dunglasdunglas is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

5.3

Development

Successfully merging this pull request may close these issues.

6 participants

@fancyweb@stof@nicolas-grekas@derrabus@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp