github / licensed

A Ruby gem to cache and verify the licenses of dependencies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug with gem bundle in subdirectory / Could not find optimist (3.1.0) in any sources

halostatue opened this issue · comments

I maintain a repo that has three implementations of the same specification in it and I’m exploring licensed. This can be seen at KineticCafe/app_identity@licensed. I don't have licensed in any gem files or anything else right at the moment, so it assumes that licensed is installed globally.

I’ve mostly got things working, but I’m getting an odd error with the Ruby bundle:

$ licensed status
Checking cached dependency records for app_identity
..........................
26 dependencies checked, 0 errors found.
Checking cached dependency records for app_identity
F
Errors:
* app_identity.bundler.optimist
    - could not find optimist (3.1.0) in any sources


1 dependencies checked, 1 errors found.
Checking cached dependency records for app_identity
.......................
23 dependencies checked, 0 errors found.

Licensed found errors during source enumeration.  Please see https://github.com/github/licensed/tree/master/docs/commands/status.md#status-errors-and-resolutions for possible resolutions.

The Gemfile is dependent on a generated .gemspec (but the .gemspec is checked into the repository).

I cannot reproduce this with a simple standalone Gemfile:

source "https://rubygems.org"

gem "optimist", "~> 3.1"

Nor with a slightly more complex example using gemspec, as in this test gist.

I’m not sure how to investigate this further, but it prevents me from using licensed on this repo.