Skip to content

task: adds drush install/remove bypass for drupal main branch #61#62

Merged
rfay merged 3 commits intoddev:mainfrom
mradcliffe:61-drush-alternative
Mar 21, 2026
Merged

task: adds drush install/remove bypass for drupal main branch #61#62
rfay merged 3 commits intoddev:mainfrom
mradcliffe:61-drush-alternative

Conversation

@mradcliffe
Copy link
Contributor

@mradcliffe mradcliffe commented Mar 18, 2026

The Issue

drush/drush and drupal/core-recommended conflict due to Symfony 8.

How This PR Solves The Issue

Prevents drush from being installed or removes drush when DRUPAL_BRANCH is main so that composer install will work.

This means that any further drush commands will fail, and Drupal will need to be installed via the user interface.

Adds a todo to follow-up and either revert this code or change to using a future core CLI command. Hopefully that is done in the next 3-6 months.

Manual Testing Instructions

I am not sure how to manually test since I am new to coder-ddev.

Automated Testing Overview

Hopefully the "::main:drupal12" test will pass.

Related Issue Link(s)

#61

Release/Deployment Notes

@rfay
Copy link
Member

rfay commented Mar 19, 2026

We can wait just a hair for this one as there is sudden movement on drush.

@mradcliffe
Copy link
Contributor Author

+1. We should probably make a decision by Monday or Tuesday giving time to check-in with discussions in contribution room/lounge.

@rfay
Copy link
Member

rfay commented Mar 21, 2026

I'll probably pull and experiment with it today on train.

@rfay rfay force-pushed the 61-drush-alternative branch from 2e2eef2 to e794e65 Compare March 21, 2026 16:46
rfay and others added 2 commits March 21, 2026 12:09
…l install instructions, fixes ddev#61

- Fix syntax error: missing closing quote on DRUPAL_BRANCH != "main" condition
- Fix if/else structure: restore 'else' guard so Steps 5-6 are skipped on SETUP_FAILED
- Add Step 4.1: ddev composer remove drush/drush on main branch before any composer update/install
- Simplify Step 5: drush install/removal logic now clean (main handled in 4.1)
- Step 6: skip ddev drush si on main branch (not yet compatible); set MANUAL_INSTALL_NEEDED
- Append manual install instructions to WELCOME.txt with site URL when on main branch
- Skip ddev drush cr when Drupal is not installed (MANUAL_INSTALL_NEEDED=true)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rfay rfay merged commit 40fdb20 into ddev:main Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants