ComposerInspector::validate() should run `composer validate`

Created on 27 February 2023, over 1 year ago

Problem/Motivation

Follow up to 📌 Add a validate() method to ComposerInspector to ensure that Composer is usable Fixed

I talked to @effulgentsia about this and he agreed it would be reasonable for us to require that the composer project pass validation in order to use Package Manager.

Proposed resolution

Add a composer validate command to \Drupal\package_manager\ComposerInspector::validate. This will make sure that no other methods of ComposerInspector are usable unless you have usable valid set-up.

📌 Run `composer validate` after FixtureManipulator commits its changes Fixed to see the command needed to run validation

Depending on how we solve 📌 Create an API for base requirement validators which run before other validators and stop event propagation if they fail Fixed this will mean that no other validator that uses Composer will have to deal with invalid setups.

Remaining tasks

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States tedbow Ithaca, NY, USA

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

Comments & Activities

Production build 0.71.5 2024