Created on 22 November 2024, 2 months ago

I'm using Drupal 9 (prepping for a 10 upgrade) and using the calendar module. When I install the calendar module, it brings in views_templates 1.4 because it's composer.json says it can work with D9. However, when I try to enable the calendar module, I can't because the .info.yml file says the Drupal core isn't supported.

I tried running composer require drupal/views_template:^1.3, but it still installs 1.4.

🐛 Bug report
Status

Active

Version

1.4

Component

Code

Created by

🇺🇸United States jason_purdy

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

Comments & Activities

  • Issue created by @jason_purdy
  • 🇺🇸United States jason_purdy

    Actually, I was able to work around it by saying composer require drupal/views_template:1.3 ... thought the ^1.3 would not allow 1.4 to come through.

  • 🇮🇳India dev2.addweb

    Yes, @jason_purdy installing the Calendar module, it pulls Views Templates version 1.4. Need to modify the composer.json file of the Calendar module to address its dependency. Additionally, Need to release separate Calendar module for Drupal 9 and 10 with the appropriate Views Templates version compatibility.

    Need to update views_templates as below in Calendar's composer file for drupal 9,

    {
      "name": "drupal/calendar",
      "description": "Provides a Views plugin to display views containing dates as Calendars.",
      "type": "drupal-module",
      "license": "GPL-2.0-or-later",
      "homepage": "https://www.drupal.org/project/calendar",
      "authors": [
        {
           "name": "Neslee Canil Pinto",
           "homepage": "https://www.drupal.org/u/neslee-canil-pinto",
            "role": "Maintainer"
        },
        {
           "name": "Eric Sol",
           "homepage": "https://www.drupal.org/u/solide-echt",
           "role": "Maintainer"
        }
      ],
      "support": {
        "issues": "https://www.drupal.org/project/issues/calendar",
        "source": "https://git.drupalcode.org/project/calendar"
      },
      "require": {
        "drupal/core": "^9.4 || ^10",
        "drupal/views_templates": "1.3"
      }
    }
  • 🇺🇸United States jason_purdy

    Calendar's current requirement is ^1.2, which in an ideal world would work b/c if view_templates 1.4's composer json said it couldn't work with D9, then it would install 1.3 instead.

  • 🇺🇸United States nicxvan

    Yeah when updating from obsolete versions sometimes you have to manually pin the version.

    I'm glad you were able to figure this out!

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

Production build 0.71.5 2024