Upgrade status must be uninstalled before upgrading to Drupal 10

Created on 22 December 2022, about 2 years ago
Updated 30 January 2023, almost 2 years ago

Hi all

I am upgrading from 9.5 to 10 and /admin/reports/upgrade-status tells me I am 100% ready.

https://www.drupal.org/project/drupal/releases/10.0.0 says

To update your site and all dependencies to the latest version of Drupal:

$ composer update "drupal/core-*" --with-all-dependencies

But I think first I need to remove upgrade_status because it is not D10 compatible.

So I have uninstalled upgrade_status at /admin/modules/uninstall

But then $ composer remove drupal/upgrade_status fails (see below)

Any suggestions please?

$ composer remove drupal/upgrade_status
./composer.json has been updated
Running composer update drupal/upgrade_status
Loading composer repositories with package information
Updating dependencies
Info from https://repo.packagist.org: #StandWithUkraine
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires composer/installers ^2.0, found composer/installers[dev-main, v2.0.0-alpha1, ..., 2.x-dev (alias of dev-main)] but the package is fixed to v1.12.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  Problem 2
    - Root composer.json requires drupal/core-composer-scaffold ^10.0, found drupal/core-composer-scaffold[10.0.0-alpha1, ..., 10.1.x-dev] but the package is fixed to 9.5.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  Problem 3
    - Root composer.json requires drupal/core-project-message ^10.0, found drupal/core-project-message[10.0.0-alpha1, ..., 10.1.x-dev] but the package is fixed to 9.5.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  Problem 4
    - Root composer.json requires drupal/core-recommended ^10.0, found drupal/core-recommended[10.0.0-alpha1, ..., 10.1.x-dev] but the package is fixed to 9.5.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  Problem 5
    - Root composer.json requires drupal/core-dev ^10.0, found drupal/core-dev[10.0.0-alpha1, ..., 10.1.x-dev] but the package is fixed to 9.5.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Removal failed, reverting ./composer.json to its original content.
Removal failed, drupal/upgrade_status is still present, it may be required by another package. See `composer why drupal/upgrade_status`.
$ composer why drupal/upgrade_status
drupal/recommended-project  -  requires  drupal/upgrade_status (^3.18)
$ cat composer.json
{
    "name": "drupal/recommended-project",
    "description": "Project template for Drupal 9 projects with a relocated document root",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": "https://www.drupal.org/project/drupal",
    "support": {
        "docs": "https://www.drupal.org/docs/user_guide/en/index.html",
        "chat": "https://www.drupal.org/node/314178"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    ],
    "require": {
        "composer/installers": "^2.0",
        "drupal/core-composer-scaffold": "^10.0",
        "drupal/core-project-message": "^10.0",
        "drupal/core-recommended": "^10.0",
        "drupal/admin_toolbar": "^3.1.0",
        "drupal/twig_field_value": "^2.0.0",
        "drupal/twig_tweak": "^3.1.3",
        "drupal/ultimenu": "^2.3",
        "drupal/upgrade_status": "^3.18",
        "drupal/viewsreference": "^2.0-beta2",
        "drush/drush": "^11.0"
    },
    "require-dev": {
        "drupal/core-dev": "^10.0"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "config": {
        "sort-packages": true,
        "allow-plugins": {
            "composer/installers": true,
            "drupal/core-composer-scaffold": true,
            "drupal/core-project-message": true,
            "dealerdirect/phpcodesniffer-composer-installer": true
        }
    },
    "extra": {
        "drupal-scaffold": {
            "locations": {
                "web-root": "web/"
            }
        },
        "installer-paths": {
            "web/core": ["type:drupal-core"],
            "web/libraries/{$name}": ["type:drupal-library"],
            "web/modules/contrib/{$name}": ["type:drupal-module"],
            "web/profiles/contrib/{$name}": ["type:drupal-profile"],
            "web/themes/contrib/{$name}": ["type:drupal-theme"],
            "drush/Commands/contrib/{$name}": ["type:drupal-drush"],
            "web/modules/custom/{$name}": ["type:drupal-custom-module"],
            "web/profiles/custom/{$name}": ["type:drupal-custom-profile"],
            "web/themes/custom/{$name}": ["type:drupal-custom-theme"]
        },
        "drupal-core-project-message": {
            "include-keys": ["homepage", "support"],
            "post-create-project-cmd-message": [
                "<bg=blue;fg=white>                                                         </>",
                "<bg=blue;fg=white>  Congratulations, you’ve installed the Drupal codebase  </>",
                "<bg=blue;fg=white>  from the drupal/recommended-project template!          </>",
                "<bg=blue;fg=white>                                                         </>",
                "",
                "<bg=yellow;fg=black>Next steps</>:",

                "  * Install the site: https://www.drupal.org/docs/8/install",
                "  * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
                "  * Get support: https://www.drupal.org/support",
                "  * Get involved with the Drupal community:",
                "      https://www.drupal.org/getting-involved",
                "  * Remove the plugin that prints this message:",
                "      composer remove drupal/core-project-message"
            ]
        }
    }
}
$
💬 Support request
Status

Fixed

Version

3.18

Component

Code

Created by

🇬🇧United Kingdom juc1

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024