How to override default gems with an older version (in particular Bundler)? #7403
Replies: 2 comments 12 replies
-
In C Ruby 2.6.x bundler is a default gem so we also do that (although we still support ruby 2.6.x while they don't so we have a newer version than the last version of C Ruby 2.6.x). C Ruby 2.5.x did not install bundler as a default gem so that is the explanation for the issue you linked to. jruby-complete is an all in one solution and you get what you get. rubygems allows you to specify multiple directories for gems so you could install a newer bundler in a separate directory and it should use that version instead (assuming it is newer). GEM_PATH??? I think is how you add an extra directory. So set the right env and it should pick up gems from there too. |
Beta Was this translation helpful? Give feedback.
-
I have moved this to General discussions since there's more than just a simple Q&A here. |
Beta Was this translation helpful? Give feedback.
-
I just realized JRuby 9.3.8.0 comes with Bundler 2.2.29 as part of
default_gems
. In my case, this seem to prevent working with Ruby projects that require an older version of Bundler. So, is there a way to override the default Bundler version? I'm currently using thejruby-complete
artifact. Should I maybe usejruby-base
instead, and them somehow install Bundler manually?PS: What's the difference between
default_gems
andbundled_gems
inpom.rb
? I'm asking because this issue is about not shipping Bundler as a bundled Gem, and I'm wondering why it's still a default Gem.Beta Was this translation helpful? Give feedback.
All reactions