Core requirement rewriter can result in a bad constraint

Created on 29 August 2024, 4 months ago
Updated 20 September 2024, 3 months ago

Problem/Motivation

The .amend-core-requirements-drupal-11 code in include.drupalci.main.yml is looking for 11, but when it doesnt contain 11, but the contraint otherwise supports 11, the string will be rewritten and result in a bad constraint.

Steps to reproduce

For example, Key β†’ project has the >=10.2 <12 constraint. This accepts Drupal 11, but it doesnt mention the string '11'.

The current code rewrites this constraint to ">=10.2 <12" || ^11, which is invalid.

Proposed resolution

  • If the constraint does not contain ^11 then simply replace the entire constraint with ^11
  • (not necessary)
πŸ› Bug report
Status

Fixed

Component

gitlab-ci

Created by

πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024