-
-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add handling for LibraryInstaller returning PromiseInterface
- Loading branch information
Showing
1 changed file
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5006d0c
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.
Hi, I get the same issue - but this worked for long time. Did something change here?
5006d0c
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 due to a custom installer plugin interacting badly with Composer 2.
Please check which plugins you have installed. If you run for example
composer diagnose -vvv
somewhere on top of the output it should showLoading plugin Some\Class\Name
.One of these is most likely the cause for the problems, so you have to report the error on that plugin's repository. Or also you can try to
composer update plugin/package --no-plugins
to make sure you have the latest version of the plugin installed, perhaps it has been fixed already.This commit here is just an example of how other plugins can also fix it. It's not related to the problem you are experiencing.
5006d0c
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.
Hi I also have the same problem, and I have very little experience with Openshift.
Although I have a different output from his, I can see in his case, it says "Failed to extract blue-tomato/elascticsearch-feeder".
From what I understand of your reply, the plugin "blue-tomato/elascticsearch-feeder" is the plugin that's causing the trouble correct? i.e. not the composer?
My question is, if I can't even install the plugin, how can I possibly update it? In my case at least, the log has just installed the plugin "wyrihaximus/twig-view" and shortly after "Failed to extract wyrihaximus/twig-view" followed by "cannot find or open /opt/app-root/src/vendor/composer/tmp-8b325c55671adf08e12a9a92d86c0f32" this composer path.
So is there nothing wrong with the composer then, and just the plugin? and how can I update it if the installation in the first place went wrong?
5006d0c
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.
The yiisoft/yii2-composer update helped me.
I had the same error when trying to run
composer install
. I didn't need to update all the dependencies. Updatingyiisoft/yii2-composer
to 2.0.10 solved this problem.5006d0c
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.
use version 1.xxx is ok.
5006d0c
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.
composer self-update --1
5006d0c
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.
If you do that, you're going back to composer 1, so that's not helpful, sorry. Composer 2 is way faster and uses less memory. It's the way of the future and rightly so. We need to deal with issues, not hide from them.
5006d0c
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.
Both issues appear to be with composer deps?
Loading plugin PackageVersions\Installer (from composer/package-versions-deprecated)
Loading plugin UpdateHelper\ComposerPlugin (from kylekatarnls/update-helper)
5006d0c
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 would be great to know if @Seldaek 's suggestions worked for others because it didn't work for me.
composer diagnose -vvv
didn't reveal any problematic plugins.composer global update
used to work fine when I was on composer v1, so I'm sure my issue, which is the same @tiefenb's, must be related to composer v2 somehow. Ideas anyone, please?5006d0c
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.
@ola-mymed report a new issue with details on how to reproduce the issue and the name of the plugins perhaps so we can have a look.
5006d0c
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.
composer config -g repo.packagist composer https://packagist.org
That fixed it for me, hope that helps
5006d0c
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.
Composer v2.
After a night of combining, it worked:
5006d0c
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.
if you have try all option and none work try delete whole vendor file if you have it somehow it's work for me
5006d0c
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.
Upgrading composer to version
2.2.5
from2.1.6
fixed it for me.5006d0c
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.
I was using the docker image. I didn't realise mine was way out of date. I had to manually remove the image and pull it again.
5006d0c
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.
One possible cause for this issue (which made me loose about half an hour) is two or more composer processes running in the same folder.
In my case this happened because I had configured parallel CI steps in woodpecker, thinking that they ran in separate containers with no shared folders, while they actually run in separate containers, but sharing the repo folder in a volume.
Using a lock to avoid race conditions during composer update fixed the issue for me.