geerlingguy / jeffgeerling-com

Drupal Codebase for JeffGeerling.com
https://www.jeffgeerling.com
GNU General Public License v2.0
41 stars 2 forks source link

composer.lock seems incompatible with Composer 2 #130

Closed geerlingguy closed 3 years ago

geerlingguy commented 3 years ago

In CI, and if I upgrade Composer to v2 locally, I get the following:

$ composer install --dev
You are using the deprecated option "--dev". It has no effect and will break in Composer 3.
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Error: Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer is locked to version v0.6.2 and an update of this package was not requested.
    - dealerdirect/phpcodesniffer-composer-installer v0.6.2 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

  Problem 1
    - dealerdirect/phpcodesniffer-composer-installer is locked to version v0.6.2 and an update of this package was not requested.
    - dealerdirect/phpcodesniffer-composer-installer v0.6.2 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

I opened an upstream issue here: https://github.com/Dealerdirect/phpcodesniffer-composer-installer/issues/119

jimrome commented 3 years ago

I am still getting this issue with the latest Composer 2. Composer 1.10 does not give this problem, but I really need to use composer 2.0 because I am running into 2 GB memory limit issues on my host. Why hasn't this been fixed? How do I manually unlock versions of modules? ` Problem 1

geerlingguy commented 3 years ago

@jimrome - That looks like a different dependency conflict. I haven't seen that, but it looks like zurb_foundation is the module causing that issue in your case.