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
Allow to bundle for a different Ruby version than the currently running version #7399
Comments
If you would like to just resolve the bundle, you can use |
I mean, it normally works, but depending of |
I'm not sure I do follow @deivid-rodriguez. Without Ruby installed, there is no way to install the bundle, since it is not known where to install the gems. It is possible to resolve ( |
Just double checking how Regardless of that potential bug with the The use case of Dependabot is to be able to provide manifest updates that respect the Ruby version end users are using, without having to install and switch to that version in order to provide the update. To do this, Dependabot currently monkeypatches Bundler to pass to the resolver the ruby version required by the manifest (for example, through |
Sometimes you're running a given Ruby version, but you want to be able to bundle for another, typically in automation systems, directly using the library code, not the
bundle
executable.For example, Dependabot currently runs 3.1.4, but can bundle dependencies for 3.3.0 if you provide a
ruby "3.3.0"
line in your Gemfile.The way it does that is by monkey-patching, it would be nice if there was first class support for this: dependabot/dependabot-core#6030 (comment)
The text was updated successfully, but these errors were encountered: