Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release new version, to allow installing Drush in Drupal 11 #177

Closed
gitressa opened this issue Jun 17, 2024 · 10 comments
Closed

Release new version, to allow installing Drush in Drupal 11 #177

gitressa opened this issue Jun 17, 2024 · 10 comments

Comments

@gitressa
Copy link

Problem

You get an error if you try to install Drush in Drupal 11, which will be officially released late July 2024:

Solution

Drupal 11 is only a few weeks away, so all those who are installing Drupal 11 will run into this problem, and hit a full stop ...

Perhaps chi-teck/drupal-code-generator can get a release before too long, so that the users who are installing Drupal 11 don't get this error?

@gitressa
Copy link
Author

This will also be an issue for those in the Drupal community who are working on getting contrib modules ready for Drupal 11.

@jcnventura
Copy link

+1

@Chi-teck
Copy link
Owner

DCG is currently in RC state. We plan to release stable version before Drupal 11.0 release.

@gitressa
Copy link
Author

Thanks for replying @Chi-teck. The sooner it can be released, the better, since this is an issue for module maintainers getting ready for Drupal 11, and just generally, everyone who wants to run Drupal 11 ... Thanks!

@Chi-teck
Copy link
Owner

@gitressa this works for me

composer create drupal/recommended-project:^11@beta
cd recommended-project
composer require drush/drush

@gitressa
Copy link
Author

gitressa commented Jun 23, 2024

You're right, great! I wonder why it works now ... maybe it was the release of Drupal Code Generator 4.0.0-RC1? Or do you think Drupal core constraints were relaxed, or something entirely different?

Anyway, thanks for a fast follow up, and for maintaining Drupal Code Generator!

@kopeboy
Copy link

kopeboy commented Jul 17, 2024

It doesn't work with Drupal 11.0.0-rc1? 🤔

EDIT: I had to specifically require drush/drush:^13

@fk-devcode
Copy link

fk-devcode commented Sep 5, 2024

Trying to install Drupal 11 as a local development site running as docker container.
Stuck at:
$ ddev composer require drush/drush

ERROR: - drupal/core 11.0.0 requires php >=8.3.0 -> your php version (8.2.20) does not satisfy that requirement.

I tried specifying the version as I thought it might help

$ ddev composer require drush/drush:^13

but I'm also hitting a wall with this, cannot figure out a way to get it working. Not very experienced with DDEV or composer, so I'm not sure what to do.

@weitzman
Copy link
Contributor

weitzman commented Sep 5, 2024

Edit you ~/.ddev/config.yaml to use php version 8.3 instead of 8.2

@fk-devcode
Copy link

fk-devcode commented Sep 5, 2024

Edit you ~/.ddev/config.yaml to use php version 8.3 instead of 8.2

Hi... thanks for taking the time to reply. I don't see a config.yaml file in that directory, only global_config.yaml, which doesn't have directives for php, only for ports and other stuff. Do I have to add an 'environment variable' specific to PHP ?

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

No branches or pull requests

6 participants