Thiago Romão Barcala created AVRO-4018: ------------------------------------------
Summary: PHP monorepo plugin is not compatible with latest composer version Key: AVRO-4018 URL: https://issues.apache.org/jira/browse/AVRO-4018 Project: Apache Avro Issue Type: Bug Reporter: Thiago Romão Barcala The current PHP implementation includes a dependency on composer-monorepo-plugin, and an attempt to install the library with the newest version of composer fails with the following error: {code:java} thiago@750b0b729a32:/src/cmptst$ composer config repositories.repo-name vcs https://github.com/apache/avro thiago@750b0b729a32:/src/cmptst$ composer require apache/avro:dev-main ./composer.json has been updated Running composer update apache/avro Loading composer repositories with package information Updating dependencies Lock file operations: 2 installs, 0 updates, 0 removals - Locking apache/avro (dev-main cb8610e) - Locking beberlei/composer-monorepo-plugin (v0.16.5) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 2 installs, 0 updates, 0 removals beberlei/composer-monorepo-plugin contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins Do you trust "beberlei/composer-monorepo-plugin" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y - Installing beberlei/composer-monorepo-plugin (v0.16.5): Extracting archive - Installing apache/avro (dev-main cb8610e): Extracting archive Generating autoload files Generating autoload files for monorepo sub-packages with dev-dependencies. PHP Fatal error: Declaration of Monorepo\Composer\EventDispatcher::dispatch($eventName, ?Composer\EventDispatcher\Event $event = null) must be compatible with Composer\EventDispatcher\EventDispatcher::dispatch(?string $eventName, ?Composer\EventDispatcher\Event $event = null): int in /src/cmptst/vendor/beberlei/composer-monorepo-plugin/src/main/Monorepo/Composer/EventDispatcher.php on line 9Fatal error: Declaration of Monorepo\Composer\EventDispatcher::dispatch($eventName, ?Composer\EventDispatcher\Event $event = null) must be compatible with Composer\EventDispatcher\EventDispatcher::dispatch(?string $eventName, ?Composer\EventDispatcher\Event $event = null): int in /src/cmptst/vendor/beberlei/composer-monorepo-plugin/src/main/Monorepo/Composer/EventDispatcher.php on line 9 {code} This plugin seems to be not often maintained, the last published version being more than 3 years old. Also, considering that the maintainer of the plugin states that the plugin is experimental, I think it is reasonable to look for an alternative. -- This message was sent by Atlassian Jira (v8.20.10#820010)