Skip to content

Can't detect licenses of default gems #701

Closed as not planned
Closed as not planned
@GarrisonD

Description

@GarrisonD

For example, ruby 3.2.3 comes with date 3.3.3 and I have date 3.3.3 in my Gemfile.lock

gem info date output:

*** LOCAL GEMS ***

date (3.3.3)
    Author: Tadayoshi Funaba
    Homepage: https://github.com/ruby/date
    Licenses: Ruby, BSD-2-Clause
    Installed at (default): /usr/local/lib/ruby/gems/3.2.0

    A subclass of Object includes Comparable module for handling dates.

and the problem is that /usr/local/lib/ruby/gems/3.2.0/gems/date-3.3.3/ is empty!

And as expected I get this from the licensed:

Errors:
* Jass.bundler.date
  version: 3.3.3, filename: /app/back-end/.licenses/Jass/bundler/date.dep.yml, license: other, allowed: false
    - missing license text

If I run gem install date -v 3.3.3 or change its version to any other in Gemfile.lock, then licensed is happy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleOlder issue or PR without additional information, questions, or request for actions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions