Just a minor. Composer validate throws a warning.

martin@martin-XPS-13-9370 /var/www/html/d9.localhost/web/modules/contrib/token (8.x-1.x=) $ composer validate
./composer.json is valid, but with a few warnings
See https://getcomposer.org/doc/04-schema.md for details on the schema
License "GPL-2.0+" is a deprecated SPDX license identifier, use "GPL-2.0-or-later" instead
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lolandese created an issue. See original summary.

lolandese’s picture

After applying the attached patch it is solved:

martin@martin-XPS-13-9370 /var/www/html/d9.localhost/web/modules/contrib/token (8.x-1.x *=) $ composer validate
./composer.json is valid
lolandese’s picture

Priority: Normal » Minor
ngkoutsaik’s picture

Status: Needs review » Needs work

Hi,

thanks for the patch. I reviewed it and it works.

However, it does not apply cleanly. I had to use patch -p1 < failing.patch in order for it to apply.

lolandese’s picture

Use git apply instead:

martin@martin-XPS-13-9370 /var/www/html/d9.localhost/web/modules/contrib/token (8.x-1.x=) $ git apply -v token-deprecated_license_identifier-3131054-2.patch
Checking patch composer.json...
Applied patch composer.json cleanly.

Also, it wouldn't pass the automated test if the patch does not apply.

lolandese’s picture

Status: Needs work » Needs review
ngkoutsaik’s picture

Maybe I did not communicate that well. I used first git apply -v patchname. I am on the latest branch.

Here is the output I get

git apply -v token-deprecated_license_identifier-3131054-2.patch
Checking patch composer.json...
error: while searching for:
{
  "name": "drupal/token",
  "type": "drupal-module",
  "license": "GPL-2.0+",
  "description": "Provides a user interface for the Token API, some missing core tokens.",
  "require": {
      "drupal/core": "^8.7.7 || ^9"

error: patch failed: composer.json:1
error: composer.json: patch does not appl

.

ngkoutsaik’s picture

I had to reroll the patch for it to apply cleanly.

git apply -v test-branch.patch
Checking patch composer.json...
Applied patch composer.json cleanly.
ngkoutsaik’s picture

lolandese’s picture

I understand now. A commit was made on the same composer.json file after the patch was posted. See https://git.drupalcode.org/project/token/commit/40e3765

Thanks for the reroll.

paulocs’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
16.04 KB

Patch #9 looks good to me!

thalles’s picture

#9 looks good to me!
+1 RTBC

TR’s picture

Still applies, still passes. +1 RTBC.

Berdir’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

  • Berdir committed bd6e316 on 8.x-1.x authored by lolandese
    Issue #3131054 by lolandese, ngkoutsaik, paulocs: License "GPL-2.0+" is...
Matroskeen’s picture

This probably should be marked as "Fixed".

lolandese’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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