Skip to content

Can the license field better describe the licenses? #7355

Open
@voxik

Description

@voxik

A while ago, I have submitted this PR trying to clarify the project license. Part of the PR was this line:

spec.license = "MIT AND (BSD-2-Clause OR GPL-2.0-or-later)"

And now it was pointed out to me that this is not according to the documentation and of course RubyGems complains:

WARNING:  license value 'MIT AND (BSD-2-Clause OR GPL-2.0-or-later)' is invalid.  Use a license identifier from
http://spdx.org/licenses or 'Nonstandard' for a nonstandard license.
Did you mean 'AGPL-1.0-or-later', 'AGPL-3.0-or-later', 'BSD-2-Clause-Patent', 'GPL-2.0-or-later', 'LGPL-2.0-or-later'?

The root issue is that I have not realized that the licenses field is an array of identifiers. The following could satisfy the RubyGems license validation:

spec.licenses = ["MIT", "BSD-2-Clause", "GPL-2.0-or-later"]

nevertheless, there is IMHO a lot of information lost. So I though I'll check here what is RubyGems view on this problem. I understand that trying to be more precise in this are would cost a lot of effort, therefore I'm fine if this was rejected. Or maybe the the documentation could be improved to better describe that this is only list of identifiers without capturing anything more complex. Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions