Skip to content

Remove unreachable duplicate LGPL key in rubygems license mapping - #5315

Open
Daksha1611 wants to merge 1 commit into
aboutcode-org:developfrom
Daksha1611:fix-rubygems-duplicate-lgpl-key
Open

Remove unreachable duplicate LGPL key in rubygems license mapping#5315
Daksha1611 wants to merge 1 commit into
aboutcode-org:developfrom
Daksha1611:fix-rubygems-duplicate-lgpl-key

Conversation

@Daksha1611

Copy link
Copy Markdown

Fixes #5314

LICENSES_MAPPING has 'LGPL' on two consecutive lines (679-680), so the first is discarded and a bare LGPL gem declaration always resolves to lgpl-2.0-plus.

This drops the unreachable line and keeps the value that already applies, so nothing changes at runtime. As noted in the issue, it is worth deciding whether an unversioned LGPL should stay unversioned as lgpl instead — that is a one-word change on top of this if you want it.

…rg#5314

LICENSES_MAPPING defined 'LGPL' on two consecutive lines, so the first
entry was silently discarded and a bare LGPL declaration always resolved
to lgpl-2.0-plus.

Remove the unreachable line and keep the value that already applies, so
the mapping is unchanged at runtime.

Signed-off-by: Daksha1611 <mehtadaksha1611@gmail.com>

@Shriprasad-P Shriprasad-P left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review

PR: Remove unreachable duplicate LGPL key in rubygems license mapping

Touched: CHANGELOG.rst, src/packagedcode/rubygems.py

  • CI/tooling change — confirm the pipeline still passes on this branch.
  • Size looks manageable (+3/-1).

Commenting as a drive-by reviewer after reading the diff. Happy to look again if maintainers want a deeper pass on a specific file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate LGPL key in rubygems LICENSES_MAPPING makes one mapping unreachable

2 participants