Work around composer Drupal and PHP requirement fragility

Created on 28 May 2024, 7 months ago
Updated 23 July 2024, 5 months ago

I'm not sure how this is going to be resolved. It might be a need for more documentation although I expect this will be resolved when Acquia Migrate: Accelerate builds out sites in Drupal 10 instead of Drupal 9.

Problem/Motivation - Aging Drupal 9 is making migration builds fragile

Recently I've noticed some acli app:new:from:drupal7 builds that worked earlier, no longer work. The problems composer returns in my cases are a combination of PHP versions and Core versions.

At first glance it appeared that composer wanted PHP 8.3 and not PHP 8.1 which had worked a few months ago. Switching to PHP 8.3 resulted in an error indicating that composer couldn't build Drupal 9.x because one of the requirements didn't support PHP 8.3. Switching to PHP 8.2 resulted in the first composer error.

As it turned out one of the modules that acli app:new:from:drupal7 wanted to install (webform_validation) has changed to only work with Drupal 10 || 11.

Since my build was part way done, I edited composer.json to remove webform_validation, ran composer install and then ran composer require 'drupal/webform_validation:^2.0@RC' which was the last version that supported Drupal 9. Then I followed the script to install the site, enable the modules etc... The site installs correctly however two patches fail. I think they are unrelated.

Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2023-07-28/3204212-field-migration-w... β†’

Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2022-12-20/core-allow_map_formatter_... β†’

Steps to reproduce

Migration Site specific.

Proposed resolution

Not sure. I'm just submitting this to pin it and leave a jumping off point.

Remaining tasks

Unknown

User interface changes

Unknown

API changes

Unknown

Data model changes

Unknown

🌱 Plan
Status

Active

Version

1.9

Component

Solution Suggestions

Created by

πŸ‡¨πŸ‡¦Canada awasson

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

Comments & Activities

Production build 0.71.5 2024