licensed icon indicating copy to clipboard operation
licensed copied to clipboard

Can't detect licenses of default gems

Open GarrisonD opened this issue 1 year ago • 0 comments

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.

GarrisonD avatar Mar 11 '24 17:03 GarrisonD