-
Notifications
You must be signed in to change notification settings - Fork 710
Composer 2.0 Support #4712
Copy link
Copy link
Closed
Labels
improvement機能改善機能改善
Milestone
Description
概要(Overview)
Composer 2.0 を使用できるようにする
期待する内容(Expect) or 要望 (Requirement)
Composer 2.0 を使用して、以下を実施する
- インストール
- プラグインの管理
再現手順(Procedure)
composer 2.0 にアップデート
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php composer.phar selfupdate --preview
Updating to version 2.0.0-RC1 (preview channel).
Downloading (100%)
Use composer self-update --rollback to return to version 1.10.13
composer install を実行
php composer.phar install --no-plugins
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.
Problem 1
- ec-cube/plugin-installer is locked to version 0.0.8 and an update of this package was not requested.
- ec-cube/plugin-installer 0.0.8 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 2
- ocramius/package-versions is locked to version 1.4.2 and an update of this package was not requested.
- ocramius/package-versions 1.4.2 requires composer-plugin-api ^1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 3
- ocramius/package-versions 1.4.2 requires composer-plugin-api ^1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- ocramius/proxy-manager 2.1.1 requires ocramius/package-versions ^1.1.1 -> satisfiable by ocramius/package-versions[1.4.2].
- ocramius/proxy-manager is locked to version 2.1.1 and an update of this package was not requested.
Use the option --with-all-dependencies to allow upgrades, downgrades and removals for packages currently locked to specific versions.
ocramius/package-versions only provides support for Composer 2 in 1.8+, which requires PHP 7.4.
If you can not upgrade PHP you can require composer/package-versions-deprecated to resolve this with PHP 7.0+.
You are using a snapshot build of Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report an issue to them to ask them to support Composer 2. To work around this you can run Composer with --ignore-platform-req=composer-plugin-api, but this may result in broken plugins and bigger problems down the line.
環境 (environment)
- EC-CUBE: 4.0.5
- PHP: 7.4.10
関連情報 (Ref)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
improvement機能改善機能改善