Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-4018

PHP monorepo plugin is not compatible with latest composer version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      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:

      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  

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            thiago Thiago Romão Barcala
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h