Allow to bundle for a different Ruby version than the currently running version
Open
@hsbt is already working on this.
Since Oct 28, 2025.
Bundler
- Dominant language
- Ruby
- Stars
- 4k
- Forks
- 1.9k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 81
Description
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: https://github.com/dependabot/dependabot-core/pull/6030#issue-1434603169
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.