Improve hook_help() to explain the actual Composer requirements

Created on 26 April 2023, about 1 year ago
Updated 4 May 2023, about 1 year ago

Problem/Motivation

As of πŸ“Œ Merge ComposerSettingsValidator into ComposerValidator Fixed , Package Manager's hook_help implementation is incomplete and out of date. It only talks about what to do if the Composer executable isn't found, but ComposerValidator now also checks a number of other things (composer.json and composer.lock are valid for the root project and all their dependencies, and Composer is configured correctly).

Proposed resolution

Add the relevant information to package_manager_help(). We should mention:

  • Your project's composer.json and composer.lock files need to pass composer validate.
  • Composer must be using secure HTTP operations. That means disable-tls needs to be false, and secure-http needs to be true (both of which are Composer's default behavior).
πŸ› Bug report
Status

Fixed

Version

3.0

Component

Package Manager

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

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

Comments & Activities

Production build 0.69.0 2024