Fix spinning up local dev envs with ddev-drupal-contrib

Created on 23 April 2025, 2 days ago

Problem/Motivation

By following the setup steps defined in https://github.com/ddev/ddev-drupal-contrib the following command fails:

❯ ddev poser
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8552  100  8552    0     0  32585      0 --:--:-- --:--:-- --:--:-- 32517
drupalConstraint=^11
core_version=11
Writing output to composer.contrib.json
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires drupal/search_api_autocomplete 1.x-dev -> satisfiable by drupal/search_api_autocomplete[1.x-dev (alias of dev-1.x)].
    - drupal/search_api_autocomplete dev-1.x requires drupal/search_api ^1.0 -> satisfiable by drupal/search_api[dev-1.x, 1.0.0-alpha1, ..., 1.x-dev (alias of dev-1.x)] from composer repo (https://packages.drupal.org/8) but drupal/search_api dev-8.x-1.x is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.
    - drupal/search_api_autocomplete 1.x-dev is an alias of drupal/search_api_autocomplete dev-1.x and thus requires it to be installed too.

touch: cannot touch 'web/core/.env': No such file or directory

This is caused by the recently merged change to 8.x-1.x branch: https://git.drupalcode.org/project/search_api/-/commit/998ab169e1c9f7da0...

Steps to reproduce

Proposed resolution

Remaining tasks

🐛 Bug report
Status

Active

Version

1.0

Component

General code

Created by

🇭🇺Hungary mxr576 Hungary

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