As usual, upgrading is very difficult. After getting the upgrade requirements satisfied, I followed

https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-8-or-...

But it fails doing the test composer upgrade, even using

composer update --dry-run drupal/core-composer-scaffold drupal/core-project-message drupal/core-recommended -W

# composer prohibits drupal/core 11.2
Package "drupal/core" could not be found with constraint "11.2", results below will most likely be incomplete.
drupal/classy           1.0.2       requires drupal/core (^9 || ^10)
drupal/core-recommended 10.4.2      requires drupal/core (10.4.2)
drupal/gtranslate       2.x-dev     requires drupal/core (^9.3 || ^10)
drupal/zurb_foundation  9.0.0-beta1 requires drupal/core (^9.3 || ^10)
Not finding what you were looking for? Try calling `composer update "drupal/core:11.2" --dry-run` to get another view on the problem.

But, I uninstalled gtranslate and classy and removed them from .json and .lock files.

zurb_foundation has a patch in composer.json 

     "extra": {
        "patches": {
            "drupal/zurb_foundation": {
                "temporary patch": "https://git.drupalcode.org/project/zurb-foundation/-/merge_requests/30.p..."
            }
        },

So where are these requirements lurking?

Comments

jaypan’s picture

At the time of writing, Drupal 11.2 has not been released and does not exist. The current version is 11.1.2. Did you manually change your composer.json file?

Contact me to contract me for D7 -> D10/11 migrations.

tjtj’s picture

Composer.json says ^11. But how do I fix the core 10.4.2. I think I need aznew lock file.

# composer prohibits drupal/core 11.1
drupal/core-recommended    10.4.2 requires         drupal/core (10.4.2)
drupal/core                11.1.0 requires         symfony/console (^7.2)
drupal/recommended-project -      does not require symfony/console (but v6.4.17 is installed)
drupal/core                11.1.0 requires         symfony/dependency-injection (^7.2)
drupal/recommended-project -      does not require symfony/dependency-injection (but v6.4.16 is installed)
drupal/core                11.1.0 requires         symfony/event-dispatcher (^7.2)
drupal/recommended-project -      does not require symfony/event-dispatcher (but v6.4.13 is installed)
drupal/core                11.1.0 requires         symfony/filesystem (^7.2)
drupal/recommended-project -      does not require symfony/filesystem (but v6.4.13 is installed)
drupal/core                11.1.0 requires         symfony/finder (^7.2)
drupal/recommended-project -      does not require symfony/finder (but v6.4.17 is installed)
drupal/core                11.1.0 requires         symfony/http-foundation (^7.2)
drupal/recommended-project -      does not require symfony/http-foundation (but v6.4.18 is installed)
drupal/core                11.1.0 requires         symfony/http-kernel (^7.2)
drupal/recommended-project -      does not require symfony/http-kernel (but v6.4.18 is installed)
drupal/core                11.1.0 requires         symfony/mailer (^7.2)
drupal/recommended-project -      does not require symfony/mailer (but v6.4.18 is installed)
drupal/core                11.1.0 requires         symfony/mime (^7.2)
drupal/recommended-project -      does not require symfony/mime (but v6.4.18 is installed)
drupal/core                11.1.0 requires         symfony/routing (^7.2)
drupal/recommended-project -      does not require symfony/routing (but v6.4.18 is installed)
drupal/core                11.1.0 requires         symfony/serializer (^7.2)
drupal/recommended-project -      does not require symfony/serializer (but v6.4.18 is installed)
drupal/core                11.1.0 requires         symfony/validator (^7.2)
drupal/recommended-project -      does not require symfony/validator (but v6.4.18 is installed)
drupal/core                11.1.0 requires         symfony/process (^7.2)
drupal/recommended-project -      does not require symfony/process (but v6.4.15 is installed)
drupal/core                11.1.0 requires         symfony/yaml (^7.2)
drupal/recommended-project -      does not require symfony/yaml (but v6.4.18 is installed)
drupal/core                11.1.0 requires         doctrine/annotations (^2.0)
drupal/recommended-project -      does not require doctrine/annotations (but 1.14.4 is installed)
drupal/core                11.1.0 requires         symfony/psr-http-message-bridge (^7.2)
drupal/recommended-project -      does not require symfony/psr-http-message-bridge (but v6.4.13 is in

tjtj’s picture

# composer update
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires drupal/core-recommended ^11 -> satisfiable by drupal/core-recommended[11.0.0-alpha1, ..., 11.x-dev].
    - Root composer.json requires drupal/zurb_foundation ^9.0@beta -> satisfiable by drupal/zurb_foundation[9.0.0-beta1].
    - drupal/core-recommended 11.0.0-rc1 requires drupal/core 11.0.0-rc1 -> satisfiable by drupal/core[11.0.0-rc1].
    - drupal/core-recommended 11.0.0-alpha1 requires drupal/core 11.0.0-alpha1 -> satisfiable by drupal/core[11.0.0-alpha1].
    - drupal/core-recommended 11.0.0-beta1 requires drupal/core 11.0.0-beta1 -> satisfiable by drupal/core[11.0.0-beta1].
    - drupal/core-recommended 11.0.0 requires drupal/core 11.0.0 -> satisfiable by drupal/core[11.0.0].
    - drupal/core-recommended 11.0.1 requires drupal/core 11.0.1 -> satisfiable by drupal/core[11.0.1].
    - drupal/core-recommended 11.0.10 requires drupal/core 11.0.10 -> satisfiable by drupal/core[11.0.10].
    - drupal/core-recommended 11.0.11 requires drupal/core 11.0.11 -> satisfiable by drupal/core[11.0.11].
    - drupal/core-recommended 11.0.2 requires drupal/core 11.0.2 -> satisfiable by drupal/core[11.0.2].
    - drupal/core-recommended 11.0.3 requires drupal/core 11.0.3 -> satisfiable by drupal/core[11.0.3].
    - drupal/core-recommended 11.0.4 requires drupal/core 11.0.4 -> satisfiable by drupal/core[11.0.4].
    - drupal/core-recommended 11.0.5 requires drupal/core 11.0.5 -> satisfiable by drupal/core[11.0.5].
    - drupal/core-recommended 11.0.6 requires drupal/core 11.0.6 -> satisfiable by drupal/core[11.0.6].
    - drupal/core-recommended 11.0.7 requires drupal/core 11.0.7 -> satisfiable by drupal/core[11.0.7].
    - drupal/core-recommended 11.0.8 requires drupal/core 11.0.8 -> satisfiable by drupal/core[11.0.8].
    - drupal/core-recommended 11.0.9 requires drupal/core 11.0.9 -> satisfiable by drupal/core[11.0.9].
    - drupal/core-recommended 11.0.x-dev requires drupal/core 11.0.x-dev -> satisfiable by drupal/core[11.0.x-dev].
    - drupal/core-recommended 11.1.0-rc1 requires drupal/core 11.1.0-rc1 -> satisfiable by drupal/core[11.1.0-rc1].
    - drupal/core-recommended 11.1.0-beta1 requires drupal/core 11.1.0-beta1 -> satisfiable by drupal/core[11.1.0-beta1].
    - drupal/core-recommended 11.1.0 requires drupal/core 11.1.0 -> satisfiable by drupal/core[11.1.0].
    - drupal/core-recommended 11.1.1 requires drupal/core 11.1.1 -> satisfiable by drupal/core[11.1.1].
    - drupal/core-recommended 11.1.2 requires drupal/core 11.1.2 -> satisfiable by drupal/core[11.1.2].
    - drupal/core-recommended 11.1.x-dev requires drupal/core 11.1.x-dev -> satisfiable by drupal/core[11.1.x-dev].
    - drupal/core-recommended 11.x-dev requires drupal/core 11.x-dev -> satisfiable by drupal/core[11.x-dev].
    - drupal/zurb_foundation 9.0.0-beta1 requires drupal/core ^9.3 || ^10 -> satisfiable by drupal/core[9.3.0-alpha1, ..., 9.5.x-dev, 10.0.0-alpha1, ..., 10.5.x-dev].
    - Conclusion: don't install drupal/core 11.1.x-dev (conflict analysis result)
    - Conclusion: don't install drupal/core 11.x-dev (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.0-alpha1 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.0-beta1 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.0-rc1 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.0 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.1 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.2 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.3 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.4 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.5 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.6 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.7 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.8 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.9 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.10 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.0.11 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.1.0-beta1 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.1.0-rc1 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.1.0 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.1.1 (conflict analysis result)
    - Conclusion: don't install drupal/core 11.1.2 (conflict analysis result)
    - You can only install one version of a package, so only one of these can be installed: drupal/core[8.0.0-beta6, ..., 8.9.x-dev, 9.0.0-alpha1, ..., 9.5.x-dev, 10.0.0-alpha1, ..., 10.5.x-dev, 11.0.0-alpha1, ..., 11.x-dev].
    - You can only install one version of a package, so only one of these can be installed: drupal/core[8.7.0-alpha1, ..., 8.9.x-dev, 9.0.0-alpha1, ..., 9.5.x-dev, 10.0.0-alpha1, ..., 10.5.x-dev, 11.0.0-alpha1, ..., 11.x-dev].

zurb foundation has a patch in composer.json:

    "extra": {
        "patches": {
            "drupal/zurb_foundation": {
                "temporary patch": "https://git.drupalcode.org/project/zurb-foundation/-/merge_requests/30.p..."
            }
        },
And I still get

# composer prohibits drupal/core 11.1.2
drupal/core-recommended    10.4.2 requires         drupal/core (10.4.2)

And somehow, now I am getting

# composer update "drupal/core-*" --with-all-dependencies
Gathering patches for root package.

In VersionParser.php line 191:

  Invalid version string "^11"

tjtj’s picture

I had to uninstall Zurb Foundation. I should not have had to. Then

composer update -W 

worked and a new lock file was created. Why didn't my composer patch work?