Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
halostatue opened this issue Sep 15, 2023 · 0 comments

Comments

@halostatue
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant