Installing from existing config is broken for distribution profiles

Created on 24 April 2019, over 5 years ago
Updated 14 June 2023, over 1 year ago

Problem/Motivation

If a profile declares itself a distribution (by specifying the distribution key in its info file) the Install from existing configuration feature is broken.

It fails with the following error message:

Unable to install the test_distribution module since it does not exist.

(where test_distribution is the machine name of the profile being installed)

Installing via drush site:install --existing-config works.

Proposed resolution

?

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Install 

Last updated 4 days ago

No maintainer
Created by

🇩🇪Germany tstoeckler Essen, Germany

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India nikhil_110

    Attached patch against Drupal 10.1.x and address #15
    Still Pending issue summary update So NW on that.

  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    Build Successful
  • 🇺🇸United States DamienMcKenna NH, USA

    Rerolled for 10.2.x.

  • 🇺🇸United States DamienMcKenna NH, USA

    #26 results in this error when loading core/install.php:

    TypeError: Symfony\Component\DependencyInjection\Container::set(): Argument #2 ($service) must be of type ?object, string given, called in /var/www/html/docroot/core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php on line 47 in Symfony\Component\DependencyInjection\Container->set() (line 146 of /var/www/html/vendor/symfony/dependency-injection/Container.php).

Production build 0.71.5 2024