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

Upgrade instructions to Drupal 9 for existing projects #565

Closed
andeersg opened this issue Jun 2, 2020 · 6 comments
Closed

Upgrade instructions to Drupal 9 for existing projects #565

andeersg opened this issue Jun 2, 2020 · 6 comments

Comments

@andeersg
Copy link

andeersg commented Jun 2, 2020

I'm trying to upgrade to Drupal 9.0.0-rc1. But I run into errors such as:

- Installation request for symfony-cmf/routing (locked at 1.4.1) -> satisfiable by symfony-cmf/routing[1.4.1].

Should all these packages be required at 9.0.0-rc1?

"drupal/core": "^8.8.0",
"drupal/core-composer-scaffold": "^8.8.0",
"drupal/core-dev": "^8.8.0"

Or is that the wrong approach? Could be a nice instruction to have in the readme maybe.

@geerlingguy
Copy link

FYI, I've had this issue as well on my live stream: geerlingguy/drupal-for-kubernetes#29

@andeersg
Copy link
Author

andeersg commented Jun 4, 2020

I think I figured something out. I followed https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-8-to-drupal-9-or-higher, but had to add drupal/core:

composer require drupal/core-recommended:^9.0.0 drupal/core-composer-scaffold:^9.0.0 drupal/core:^9.0.0  --update-with-dependencies --no-update

composer require drupal/core-dev:^9.0.0 --dev --update-with-dependencies --no-update

composer update

Then it upgraded without errors. But maybe drupal/core should be removed now that drupal/core-recommended is present?

@andeersg
Copy link
Author

andeersg commented Jun 4, 2020

Removing drupal/core seems to work.

@lchabrand
Copy link

Hi, did you find the best solution ?

@andeersg
Copy link
Author

What seems to work is:

composer require drupal/core-recommended:^9.0.0 drupal/core-composer-scaffold:^9.0.0 drupal/core:^9.0.0  --update-with-dependencies --no-update

composer require drupal/core-dev:^9.0.0 --dev --update-with-dependencies --no-update

composer update

composer remove drupal/core

Only tested locally, but that seems to work fine. And keeps all the good parts of this project :)

@AlexSkrypnyk
Copy link
Collaborator

This pull request/issue has been inactive for over a year and is being closed due to inactivity. If the issue still persists or the contribution is still relevant, please feel free to reopen it or create a new one.

Thank you for your understanding and your contributions to the project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants