Closed (fixed)
Project:
Views data export
Version:
8.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2021 at 08:17 UTC
Updated:
5 Jul 2024 at 19:04 UTC
Jump to comment: Most recent
This project includes a composer.json file that declares "license": "GPL-2.0+" (code hosted on Drupal.org must be licensed GPL 2.0 or later).
Composer has a CLI command called "validate" to check if a composer.json file is valid. When running it on my project, I see...
$ composer validate -A
... a bunch of output for my root composer.json and other modules I have installed ...
drupal/views_data_export is valid, but with a few warnings
# General warnings
- License "GPL-2.0+" is a deprecated SPDX license identifier, use "GPL-2.0-or-later" instead
... a bunch more output for other modules I have installed ...
I see the SPDX list of licenses shows GPL-2.0+ in the deprecated list.
composer --versioncomposer create-project drupal/recommended-project:10.2.3 "3209680-testing"cd 3209680-testingcomposer require --prefer-install=source 'drupal/views_data_export:dev-8.x-1.x@dev'composer validate -A (look for drupal/views_data_export in the output
drupal/views_data_export is validdrupal/views_data_export is valid, but with a few warnings
# General warnings
- License "GPL-2.0+" is a deprecated SPDX license identifier, use "GPL-2.0-or-later" insteadModify /composer.json, changing "license": "GPL-2.0+", to "license": "GPL-2.0-or-later",.
None.
None.
None.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
volegerAdded changes in MR!1
Comment #4
mparker17I'm also seeing this when I run
composer validate -Aon my project...I can confirm that the merge request in #1 would fix it. I think the test failure is unrelated to the changes in this merge request.
(aside, I've requested a composer.json linter so composer.json issues like this show up in the Drupal.org GitLab CI linter: #3417108: Create Drupal.org-specific composer.json linter, if anyone's interested in contributing to fixing this for all d.o projects)
Comment #7
steven jones commentedThanks for the issue, fix and review!