cas 3 compatibility

Created on 17 December 2024, about 1 month ago

Problem/Motivation

The module is not compatible with the 3.x branch of the cas module.

Steps to reproduce

composer require 'drupal/cas:^3.0@beta'
📌 Task
Status

Active

Version

2.0

Component

CAS Attributes

Created by

🇫🇷France prudloff Lille

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

Merge Requests

Comments & Activities

  • Issue created by @prudloff
  • Merge request !8Support cas 3.0 → (Open) created by prudloff
  • 🇫🇷France prudloff Lille

    It is IMHO a better practice to specify the required version in the info.yml file instead of composer.json.
    This way it is used both by Drupal to validate the constraint when enabling the module and by drupal.org when generating the Composer package.

  • 🇫🇷France prudloff Lille

    prudloff changed the visibility of the branch 3494490-cas-3-compatibility to hidden.

  • 🇫🇷France prudloff Lille

    prudloff changed the visibility of the branch 3494490-cas-3-compatibility to active.

  • 🇬🇷Greece vensires

    Until this is resolved, you could add the following to your composer's repositories property, just above the https://packages.drupal.org/8 repository:

    {
        "type": "package",
        "package": {
        "name": "drupal/cas_attributes",
            "description": "Provides tokens for CAS attributes and an interface for token replacement in user account fields as well as advanced role mapping capability.",
            "type": "drupal-module",
            "keywords": ["Drupal", "CAS", "single sign-on"],
            "homepage": "https://www.drupal.org/project/cas_attributes",
            "support": {
                "issues": "https://www.drupal.org/project/issues/cas_attributes",
                "source": "https://git.drupalcode.org/project/cas_attributes"
            },
            "license": "GPL-2.0+",
            "require": {
                "drupal/cas": "^2.1 || ^3.0"
            },
            "version": "2.0.0-beta5",
            "source": {
                "url": "https://git.drupalcode.org/project/cas_attributes.git",
                "type": "git",
                "reference": "2.0.0-beta5"
            }
        }
    },
    

    Depending on the version you currently use, you might need to delete your "vendor" folder.

  • 🇬🇷Greece vensires

    @prudloff I'm not completely sure at this time whether the "Works with" in the "Releases" tab uses the composer.json or the info.yml.
    I think in most cases the dependencies are described in both composer.json and .info.yml. Specific version requirements are usually set in composer.json only; though there are some cases where it's used in info.yml too but I would call them rather rare (see example).

    Whatever the maintainers decide though...

Production build 0.71.5 2024