-
Notifications
You must be signed in to change notification settings - Fork 23
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
Call to undefined method when updating to 1.7.0 #122
Comments
Had the same error pop up on our pipelines aswell. Shows out that updating composer itself, actually solves it since the "requireComposer()" method on the BaseCommand was added somewhere in between these versions:
|
@dvaeversted you are correct. I also had the problem in cs3org/reva#3063 https://drone.cernbox.cern.ch/cs3org/reva/7915/9/5
everything runs fine with composer 2.3.9. I had some trouble this morning locally with composer 2.3.5, so I think that a composer version >2.3.5 is needed. 2.3.9 is the latest and works. To any readers, make sure to have the latest composer before using composer-bin-plugin 1.7.0 |
Have a system with 1.6.0 already in composer.lock
IMO the existing 1.6.0 does not have
fromComposer
available - that was added in #90 for 1.7.0The workaround is to run
composer update
again, and this time it does not get any error.I noticed the problem in automated CI stuff, in repos where there is already a committed
composer.lock
that has 1.6.0 (and other pinned dependencies), and the CI doescomposer update
at some point. That falls over. I can manually make PRs for those to update to 1.7.0.I wonder if there is a cleaner way to avoid this transition issue?
The text was updated successfully, but these errors were encountered: