Skip to content

Installation fails if no profile is selected #156

@fjgarlin

Description

@fjgarlin

Describe the bug

If no profile is selected in the widget, the installation fails.

To solve this, we could:

  • Set a default value
  • Or make the field mandatory on the widget
  • Or check if the variable is empty before using it here.

To Reproduce

https://gitpod.io/new/#DP_PROJECT_NAME=project_browser,DP_ISSUE_FORK=project_browser-3446603,DP_ISSUE_BRANCH=3446603-test-environments,DP_PROJECT_TYPE=project_module,DP_MODULE_VERSION=2.0.x,DP_CORE_VERSION=10.3.2,DP_PATCH_FILE=,DP_INSTALL_PROFILE=''/https://git.drupalcode.org/project/drupalpod

Expected behavior

Installation finishes.

Screenshots

Forgot to take a screenshot, but the error is:

Configuring a 'drupal' project named 'DrupalPod' with docroot 'web' at '/workspace/drupalpod/web'.
For full details use 'ddev describe'.
No settings.php file exists, creating one
Configuration complete. You may now run 'ddev start'.
 You are about to:
 * DROP all tables in your 'db' database.

 // Do you want to continue?: yes.                                                                                      


In SiteInstallCommands.php line 216:
                                           
  Could not find a recipe.yml file for ''  
                                           

Failed to run drush si -y --account-pass=admin --site-name=DrupalPod '': exit status 1

Version and configuration information (please complete the following information)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions