rvm icon indicating copy to clipboard operation
rvm copied to clipboard

Installing JRuby 10.0.2.0 with RVM installs Bundler 4.x by default, doesn't seem to respect JRuby pom.rb

Open hoprocker opened this issue 2 weeks ago • 0 comments

OS: Linux Mint 21.2 Ruby: JRuby 10.0.2.0 Issue: When installing JRuby 10.0.2.0 using RVM, bundler 4.0.x is being installed, even through 2.6.9 is the "default" (see here). This causes issues with gems where 2.x is the required bundler, and it doesn't seem easy to remove the 4.x version of bundler. Here's a typical installation scenario:

$ rvm install jruby-10.0.2.0
Searching for binary rubies, this might take some time.
....
$ rvm jruby-10.0.2.0 do gem list bundler

*** LOCAL GEMS ***

bundler (4.0.1, default: 2.6.9)
bundler-unload (1.0.2)
rubygems-bundler (1.4.5)
$ rvm jruby-10.0.2.0 do bundler --version
4.0.1

Even though the default version is 2.6.9, rvm uses 4.0.1 no matter what I try. Defining which bundler to use in my Gemfile just causes a bundler incompatibility issue ("Your bundle requires a different version of Bundler than the one you're running..."). I've been able to regain control by removing bundler from the global.gems file (/path/to/rvm/gemsets/jruby/global.gems) and reinstalling JRuby, but that's not really a configurable solution.

(moving conversation over here from jruby/jruby#9118)

hoprocker avatar Dec 15 '25 00:12 hoprocker