Update to 2.0.x blocked by Schema.org Metatag module

Created on 7 June 2023, over 1 year ago
Updated 5 August 2023, over 1 year ago

Problem/Motivation

An attempt to update from Metatag 8.x-1.25 to 2.0.0-rc2 results in the following dependency error...

Problem 1
    - Root composer.json requires drupal/metatag ^2.0@RC, found drupal/metatag[2.0.0-rc1, 2.0.0-rc2] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - drupal/schema_metatag is locked to version 2.4.0 and an update of this package was not requested.
    - drupal/schema_metatag 2.4.0 requires drupal/metatag ^1.0 -> found drupal/metatag[1.0.0, ..., 1.25.0] but it conflicts with your root composer.json require (^2.0@RC).

I raise this issue here given the fact that the two closely-related modules share maintainers.

System under test

Drupal Version 9.5.9
Web server: Apache/2.4.33 (Win64) OpenSSL/1.0.2u mod_fcgid/2.3.9
Database: MySQL  5.7.24
PHP: 8.1.0
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Miscellaneous

Created by

πŸ‡¬πŸ‡§United Kingdom SirClickALot Somerset

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

Comments & Activities

  • Issue created by @SirClickALot
  • Status changed to Fixed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    We'll have a new release of Schema.org Metatag that works with Metatag 2, see 🌱 Plan for Schema Metatag 3.0.0 Fixed for details.

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Status changed to Fixed over 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia noonoos

    Same issue here.

    composer require 'drupal/metatag:^2.0' -W
    Problem 1
    - Root composer.json requires drupal/metatag ^2.0, found drupal/metatag[dev-2.0.x, 2.0.0-rc1, 2.0.0-rc2, 2.0.0, 2.0.x-dev] but these were not loaded, likely because it conflicts with another require.
    Problem 2
    - drupal/schema_metatag is locked to version 2.5.0 and an update of this package was not requested.
    - drupal/schema_metatag 2.5.0 requires drupal/metatag ^1.0 -> found drupal/metatag[dev-1.x, 1.0.0-beta1, ..., 1.x-dev (alias of dev-1.x)] but it conflicts with your root composer.json require (^2.0).

    composer require drupal/schema_metatag:^3.0 -W
    Problem 1
    - Root composer.json requires drupal/schema_metatag ^3.0 -> satisfiable by drupal/schema_metatag[3.0.0, 3.0.1, 3.0.x-dev].
    - drupal/schema_metatag[3.0.0, ..., 3.0.x-dev] require drupal/metatag ^2.0 -> found drupal/metatag[dev-2.0.x, 2.0.0-rc1, 2.0.0-rc2, 2.0.0, 2.0.x-dev (alias of dev-2.0.x)] but it conflicts with your root composer.json require (^1.1).

    Drupal 10.1.2

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    You have to update both Metatag and Schema Metatag at the same time:
    composer require drupal/metatag:^2 drupal/schema_metatag:^3

  • πŸ‡¦πŸ‡ΊAustralia noonoos

    Thanks. Always thought that something like that should work but maybe I've never got the syntax right.

Production build 0.71.5 2024