Point support > source link at drupal.org project page in Composer

Created on 2 August 2024, 5 months ago

Problem/Motivation

Currently, the three Drupal core project links in the command line from Composer are Github links. So if you click the link, you end up at the Github repo ...:

$ composer outdated "drupal/*"
Color legend:
- patch or minor release available - update recommended
- major release available - update possible

Direct dependencies required in composer.json:
drupal/core-composer-scaffold 10.3.1  11.0.0  A flexible Composer project scaffold builder.
[...]

The link is pointing at https://github.com/drupal/core-composer-scaffold/tree/10.3.1.

From composer.lock:

        {
            "name": "drupal/core-composer-scaffold",
            "version": "10.3.1",
            "source": {
                "type": "git",
                "url": "https://github.com/drupal/core-composer-scaffold.git",
                "reference": "a1a186caeb89899143e0c6912ccee9d3d7181dbe"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/drupal/core-composer-scaffold/zipball/a1a186caeb89899143e0c6912ccee9d3d7181dbe",
                "reference": "a1a186caeb89899143e0c6912ccee9d3d7181dbe",
                "shasum": ""
            },
            "require": {
                "composer-plugin-api": "^2",
                "php": ">=7.3.0"
            },
            "conflict": {
                "drupal-composer/drupal-scaffold": "*"
            },
            "require-dev": {
                "composer/composer": "^1.8@stable"
            },
            "type": "composer-plugin",
            "extra": {
                "class": "Drupal\\Composer\\Plugin\\Scaffold\\Plugin",
                "branch-alias": {
                    "dev-master": "1.0.x-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Drupal\\Composer\\Plugin\\Scaffold\\": ""
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "GPL-2.0-or-later"
            ],
            "description": "A flexible Composer project scaffold builder.",
            "homepage": "https://www.drupal.org/project/drupal",
            "keywords": [
                "drupal"
            ],
            "support": {
                "source": "https://github.com/drupal/core-composer-scaffold/tree/10.3.1"
            },
            "time": "2024-05-11T08:21:39+00:00"
        },

Steps to reproduce

Need support and more info, but end up at the Github repo page.

Proposed resolution

It would be more user friendly, if Drupal core project links pointed at the release page on drupal.org, under https://www.drupal.org/project/drupal/releases/10.3.1 .

Remaining tasks

Update "support" > "source" section link to this format in composer.lock:

"support": {
  "source": "https://www.drupal.org/project/drupal/releases/10.3.1"
},

... in these three packages:

  • drupal/core-composer-scaffold
  • drupal/core-project-message
  • drupal/core-recommended

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component
Composer 

Last updated 15 days ago

No maintainer
Created by

🇩🇰Denmark ressa Copenhagen

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

Comments & Activities

Production build 0.71.5 2024