The CI is failing on PHP 8.1 but not on PHP 7.4

Created on 16 March 2023, over 1 year ago
Updated 13 July 2023, over 1 year ago

Problem/Motivation

The CI is giving composer build failure error on PHP 8.1, while the same is passing on PHP 7.4. Below is the error:

In PluginManager.php line 740:

cweagans/composer-patches contains a Composer plugin which is blocked by your allow-plugins config. You may add it to the list if you consider it safe.
You can run "composer config --no-plugins allow-plugins.cweagans/composer-patches [true|false]" to enable it (true) or disable it explicitly and suppress this exception (false)
See https://getcomposer.org/allow-plugins
 require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]

Steps to reproduce

  • Navigate to Automation Testing tab for module DO NOT USE
  • Run tests for branch 1.0.x-dev with parameters: PHP 8.1, MySQL 5.7, Drupal Core 9.5 and you'll see build fails giving above error.
🐛 Bug report
Status

Active

Component

Continuous Integration

Created by

🇮🇳India vishalkhode

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024