Package Manager should use a copy of Composer that is local to the current project, if available

Created on 3 June 2025, 3 months ago

Problem/Motivation

Package Manager needs to be able to run Composer in order to work properly.

It will try to autodetect the path to Composer at runtime, but if that fails, it will allow the site builder to explicitly set the path to Composer (in config). If the hosting environment has a too-old version of Composer, though, that won't be sufficient either.

A project can have a copy of Composer that is local to itself (e.g., vendor/bin/composer) to get around that, of course. But it would be helpful, and reduce friction, if Package Manager would automatically detect this condition and configure itself accordingly.

Proposed resolution

If and only if composer/composer is installed in the current project, and is not a dev dependency, Package Manager's install hook should set its executable path in package_manager.settings during installation.

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component

package_manager.module

Created by

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

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