Closed ishetnogferre closed 1 year ago
Locally or in ddev changing the composer version to either 2.4.4 or 2.5.1 has fixed it for now
Craft explicitly requires Composer 2.2.15
for its internal Composer operations:
https://github.com/craftcms/cms/blob/bb51407401629d763f7936504769f10f336d803a/composer.json#L38
We do that because there were breaking changes introduced in 2.3. Why and how are you on a different version?
@brandonkelly the composer in the vendor folder is indeed 2.2.15
.
My local composer version and the one in ddev (for the command line) was 2.5.0
and somehow this setup seems to give the above count error.
I'm going to close this one out because upgrading/downgrading composer is the best fix at the moment. It looks like the original issue you linked to confirms there are some issues when running in a setup like ours. Hopefully, we can work through the breaking changes and get the internal version of composer updated, which should solve this.
Ah I get it, it’s an issue that comes up when using Craft’s built-in copy of Composer with autoload files that were generated by Composer 2.5.
Looks like the issue has been fixed for the next Composer 2.2 release, so we’ll keep an eye out for that.
For DDEV i did a ddev composer self-update
and voila im up and running again
Composer 2.2.19 was released a couple days ago, which includes the fix for this.
We just released Craft 3.7.65 and 4.3.8 with that Composer update, so this should be fixed going forward.
What happened?
Description
Starting today in every Craft 3.4.5 project where we have removed the composer.lock and vendor folder and then after reinstalling the composer packages and trying to install or update any Craft plugin, it get's interrupted with following error:
When looking at the web.log file we found following stack:
The errors and the location of it led me to this issue on the composer repo: https://github.com/composer/composer/issues/11234
I'm afraid I don't really understand that much of what is described here, but if I understand it correctly, either we have to downgrade our own composer version or have the Craft CMS one upgraded?
Craft CMS version
3.4.5
PHP version
8.1 & 8.2
Operating system and version
MacOS13
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
Composer version 2.5.0