-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Not compatible with psr/log:^3 and maybe other problems with surf 3.4 as global composer package #760
Comments
I just really wouldn't use it as a global composer package. composer can't handle different dependency versions so it is just not a good choice for anything global IMHO. I would even keep it separate from your TYPO3 or any other app. It's a stand-alone app. If you really want it in the same project but without dependency hell, https://packagist.org/packages/bamarni/composer-bin-plugin can help. Your general dependency problem might be valid of course. |
I have a container for deployment with pre-installed surf as only global composer package. So it is de facto stand-alone. Similar to https://github.com/t3easy/docker-surf/blob/main/Dockerfile#L30 |
@koehnlein The MR #770 should fix the issue. Could you try the latest release for me please. |
@sabbelasichon Thanks. The psr/log problem is solved now. I still run into the other problem
This seems to be a composer autoloading issue. I will open a new issue for that, if I could find out more. |
I have run into the same issue yesterday and fixed it. I am going to publish a new release soon. |
@koehnlein I have create another release 3.4.2. This should fix the last issue. |
@sabbelasichon Thank you very much! |
Expected Behavior
Surf 3.4 should work as global composer package
Actual Behavior
I have installed surf as global composer package to not run into dependency conflicts with my TYPO3 installation. But with the newest surf version 3.4, all surf commands result in the same PHP error, even
surf --version
The problem seems the package "psr/log". When installing surf 3.3.x, "psr/log:^2" is installed, with surf 3.4, "psr/log:^3" is installed, because I do not have any other packages installed, that set any required "psr/log" version.
After locking "psr/log" to version ^2, the error disappears, but I see the next PHP error message:
But I have absolute no idea, what's wrong here.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: