-
Notifications
You must be signed in to change notification settings - Fork 263
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
fix(deps): Do not ship psr/log #10706
Conversation
@@ -63,16 +63,16 @@ jobs: | |||
strategy: | |||
matrix: | |||
php-versions: ['8.3'] | |||
nextcloud-versions: ['master'] | |||
nextcloud-versions: ['chore/mail-bisect-6e1d9a26209ec5524fbc2fb9c7cbb53315e64d72'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because of #10688 (comment). I need a slightly outdated server checkout for CI. Right now that means we don't get the latest server master results, but I'm mostly interested in getting this to stable4.2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😎
It is provided by server's 3rdparty. Shipping another copy can lead to a dependency hell. Signed-off-by: Christoph Wurst <[email protected]>
8af2238
to
2f8f9bd
Compare
/backport to stable4.2 |
Nextcloud broke things again in an update without mentioning it in the changelog. A ton of apps are impacted (not just epubviewer). This commit uses a trick to prevent epubviewer's dependencies from installing `Psr\Log` and instead use the one diretly shipped in the dependencies of Nextcloud 31. Fix #29 (comment) Related: - nextcloud/mail#10644 - ChristophWurst/nextcloud_sentry#701 - nextcloud/mail#10706 - nextcloud/mail#10658 - ihttps://github.com/nextcloud/mail/pull/10708 - And many more…
It is provided by server's 3rdparty. Shipping another copy can lead to a dependency hell.
psr/log is now installed only for Psalm to have stubs. This avoids vendoring stubs in our repo, which would get outdated one day. Renovate will help us keep the stub package updated.
Fixes #10658
How to test
composer i
to wipe the old psr/logThe app should work the same as on
main
.