Improve error reporting when Composer state missmatch

Created on 21 May 2025, 10 days ago

Problem/Motivation

Also bumped into a similar issue as it was reported at ✨ Recipe Composer plugin: support wikimedia/composer-merge-plugin Active and the Composer root package and composer.json match did not really helped with understanding what is going on. I would suggest improving the output when the assert fails and providing detail on what was the unexpected state.

Steps to reproduce

Proposed resolution

Instead of:

In RootComposer.php line 142:

  [AssertionError (1)]
  Composer root package and composer.json match

Display:

In RootComposer.php line 144:
                                                                                       
  [AssertionError (1)]                                                                 
  Composer root package and composer.json missmatch detected.                          
  require: drupal/better_exposed_filters requires leongersen/nouislider (== 15.5.1.0)  
  require-dev: OK                                                                      
                                                                                      

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component

recipe system

Created by

πŸ‡­πŸ‡ΊHungary mxr576 Hungary

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