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

[Bundler] ::Bundler.default_gemfile raising GemFileNotFound error #23

Closed
jonabc opened this issue Apr 4, 2018 · 0 comments
Closed

[Bundler] ::Bundler.default_gemfile raising GemFileNotFound error #23

jonabc opened this issue Apr 4, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@jonabc
Copy link
Contributor

jonabc commented Apr 4, 2018

::Bundler.default_gemfile.basename is used in the bundler source when looking for a Gemfile in the applications source path.

Using ::Bundler.default_gemfile and ::Bundler.default_lockfile in licensed will raise errors when

  1. licensed is not run with an empty or nil ENV["BUNDLE_GEMFILE"]
    • e.g. not run from bundle exec
$> gem install licensed
$> licensed cache ...
  1. a Gemfile is not available in the file hierarchy from root to the application source path

When both of these are true, a default Gemfile isn't found and ::Bundler.default_gemfile raises an error.

This can be worked around by explicitly disabling the Bundler source

sources:
  rubygem: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant