mnsami / composer-custom-directory-installer

A composer plugin, to install differenty types of composer packages in custom directories outside the default composer default installation path which is in the vendor folder.
https://packagist.org/packages/mnsami/composer-custom-directory-installer
MIT License
138 stars 27 forks source link

Composer 2 - require composer-plugin-api ^1.0 -> found composer-plugin-api but it does not match the constraint #32

Closed steinmb closed 2 years ago

steinmb commented 2 years ago

Hi Not sure if it belong here.

I was unable to get it to work/install using Composer 2.

composer --version
Composer version 2.3-dev (2.3-dev+cd34886e9d9a4c7391762877200c503dbaa6aaee) 2022-01-17 14:18:33
composer update --no-plugins
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires mnsami/composer-custom-directory-installer 1.1.* -> satisfiable by mnsami/composer-custom-directory-installer[1.1.0, 1.1.1].
    - mnsami/composer-custom-directory-installer[1.1.0, ..., 1.1.1] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.3.0] but it does not match the constraint.

If I step down Composer to 1.x it works composer self-update --1.

Package operations: 5 installs, 0 updates, 0 removals
  - Installing mnsami/composer-custom-directory-installer (1.1.1): Downloading (100%)
  - Installing ckeditor/ckeditor (dev-full/4.17.x ef80cc8): Cloning ef80cc8514 from cache
  - Installing drupal/composer_autoloader (1.3.0): Downloading (100%)
...
steinmb commented 2 years ago

Ah. I followed you docs but did not check to see if there where a new major branch:

"mnsami/composer-custom-directory-installer": "^2.0",

fix it.