Skip to content
Snippets Groups Projects

Add a version constraint to the launch script

Merged Adam G-H requested to merge issue/drupal_cms-3496758:3496758-version-constraint into 1.x
1 unresolved thread

Closes #3496758

Merge request reports

Merge request pipeline #383939 skipped

Merge request pipeline skipped for 63e738ac

Merged by Adam G-HAdam G-H 4 months ago (Jan 2, 2025 2:55pm UTC)

Loading

Pipeline #383940 passed with warnings

Pipeline passed with warnings for 35d8d171 on 1.x

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
18 18 fi
19 19
20 20 # Configure DDEV if not already done.
21 test -d .ddev || ddev config --project-type=drupal11 --docroot=web --php-version=8.3
21 test -d .ddev || ddev config --project-type=drupal11 --docroot=web --php-version=8.3 --ddev-version-constraint=">=1.24.0"
  • This seems fine. Tested with v1.23.5:

    failed to validate config: unable to start the 'gjunk' project: your DDEV version 'v1.23.5' doesn't meet the constraint '>=1.24.0'. Please update to a DDEV version that meets this constraint or update the ddev_version_constraint in your .ddev/config.yaml file

    Tested with v1.22.7:

    failed to validate config: the gjunk project has a DDEV version constraint of '>=1.24.0' and the version of DDEV you are using ('v1.22.7') does not meet the constraint. Please update the ddev_version_constraint in your .ddev/config.yaml or use a version of DDEV that meets the constraint

  • With v1.21.6 it gets: Error: unknown flag: --ddev-version-constraint

  • Please register or sign in to reply
  • Looks good with manual testing.

  • Adam G-H added 3 commits

    added 3 commits

    Compare with previous version

  • merged

  • Please register or sign in to reply
    Loading