Skip to content

[BUG] License detection producing multiple declared licences #1672

@thompson-tomo

Description

@thompson-tomo

Important: Bug reports should be directed to support@fossa.com for faster response and prioritization. Bug reports may still be created here but they may not get immediate attention and may be closed in favor of internally tracked tickets.

Describe the bug
One of the ruby gems which i am using in my project (https://rubygems.org/gems/diff-lcs/versions/1.6.2) as part of the fossa scan is being detected as having 3 licenses (MIT, GPL-2.0-or-later & Artistic-1.0-Perl) as opposed to just 1 license with the ids combined using or operators.

Image

When i look into the gem, in particularly the specification of the gem it contains

licenses:
- MIT
- Artistic-1.0-Perl
- GPL-2.0-or-later

To Reproduce
Steps to reproduce the behavior:

  1. Run fossa analyze ...
  2. See error

Expected behavior
I expect 1 license to be compared with the different license types combined using the or operator just like net-pop

Image

When i look into the gem, in particularly the specification of the gem it contains

licenses:
- Ruby
- BSD-2-Clause

Debug bundle
Please run fossa with the --debug flag and attach the resulting fossa.debug.zip file here.

Additional context

Fossa report available at:

https://app.fossa.com/projects/custom%2B162%2Fgithub.com%2Fopen-telemetry%2Fopentelemetry-ruby-contrib/refs/branch/main/84f7a35d51e112ad6886c676bafa0a120377b4af/browse/dependencies?title=net-pop&sources%5B0%5D=managed&revisionScanId=100283376

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions