-
Notifications
You must be signed in to change notification settings - Fork 1
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
Remove unused psr/log dependency #39
base: main
Are you sure you want to change the base?
Conversation
Another alternative is to allow both version v2 and v3 in the package.json. But since the dep is not used, I don't see why. |
@JaZo It would be useful if you can merge and release a new version on packagist. I would love to use this package in our project since it looks very complete and integrating mautic from scratch seems like a pain haha. |
This dependency was added because the underlying package (mautic/api-library) is incompatible with version 3, but allowed installation (see mautic/api-library#273 and mautic/api-library#286). By adding the v2 constraint, we could prevent installation of v3 and make sure everything works. A fix has been merged in the underlying package, but it will only be released in the next major, because it's considered breaking, and that version is still in beta. TL;DR: We can't remove the dependency as it will break the code. |
@jhm-ciberman, you might be able to downgrade psr/log and still be able to install this package. Almost every package is compatible with v1-v3. Alternative is to use your own branch and add a patch (mautic-api-library-psr-log-v3.patch) for |
Oh, that seems way more problematic that I imagined. I understand, the problem is
About downgrading to v2. It seems we are using
About that approach of patching forking + patching, it sounds possible but I want to think of other simpler solutions first. Could this project source code compatible with I can create a PR and then maybe you could publish that as |
Description
Fixes #38
Motivation and context
Fixes #38
How has this been tested?
If it passes CI, it works™
Screenshots (if appropriate)
Types of changes
What types of changes does your code introduce? Put an
x
in all the boxes that apply:Checklist:
Go over all the following points, and put an
x
in all the boxes that apply.Please, please, please, don't send your pull request until all of the boxes are ticked. Once your pull request is created, it will trigger a build on our continuous integration server to make sure your tests and code style pass.
If you're unsure about any of these, don't hesitate to ask. We're here to help!