Skip to content

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

Closed as not planned
@halostatue

Description

@halostatue

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.

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