Unpack composer plugin impact

Created on 21 May 2025, 5 months ago

Problem/Motivation

Hi,

I am searching for a way to install a recipe from the UI and I remember that Project Browser allows to do that, or am I wrong?

Anyway, the problem is that for the recipe I want to test, I tried the new Recipe Unpack composer plugin from this CR β†’ , issue: πŸ“Œ Dependencies should be 'unpacked' to the root composer.json and merged/resolved Active

The problem is that it removes the recipe from Composer.json.

And in https://git.drupalcode.org/project/project_browser/-/blob/2.0.x/src/Plug...

    $contrib_recipe_names = InstalledVersions::getInstalledPackagesByType(Recipe::COMPOSER_PROJECT_TYPE);

It is using infos from Composer, but as the unpack removes the recipe from composer.json, Project Browser can't detect contrib recipes.

Is it something already planned or I missed something?

Steps to reproduce

Proposed resolution

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Documentation

Created by

πŸ‡«πŸ‡·France Grimreaper France πŸ‡«πŸ‡·

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

Merge Requests

Comments & Activities

  • Issue created by @Grimreaper
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    The problem is that it removes the recipe from Composer.json.

    It is supposed to do this. That's the point of unpacking. You unpack so that the recipe is no longer part of the Composer-managed dependency tree. :)

    I think what we'll need to do here is adjust the recipe finder so that it simply scans composer.json to find out where recipes would be installed, and look there.

    Re-targeting for 2.1.x; I'm not sure this will need to be backported.

  • Merge request !806Use directory where recipes might be β†’ (Open) created by phenaproxima
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts
  • Pipeline finished with Failed
    5 months ago
    Total: 367s
    #504069
  • Pipeline finished with Success
    5 months ago
    Total: 429s
    #504076
  • πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

    Let's backport this to 2.0.x. The "read composer.json" way should still work on Drupal 11.1 and older, and honestly it's probably more reliable (in certain edge cases) than the old way.

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

    This is a duplicate of πŸ› RecipeActivator needs to handle unpacked recipes that aren't Composer-managed Active , which is a bit further along and more robust.

  • Pipeline finished with Failed
    9 days ago
    Total: 249s
    #612584
  • Pipeline finished with Failed
    9 days ago
    Total: 1389s
    #612592
  • Pipeline finished with Success
    8 days ago
    #613897
  • Pipeline finished with Success
    8 days ago
    Total: 319s
    #613903
Production build 0.71.5 2024