Skip to content

Commit

Permalink
fix: pin bundler version on ruby < 3
Browse files Browse the repository at this point in the history
  • Loading branch information
g-arjones committed Jan 4, 2024
1 parent 47e93f1 commit b8d8338
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/autoproj/ops/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,11 @@ def load_config
end

def self.default_bundler_version
"2.3.6" if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.6.0")
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.6.0")
"2.3.6"
elsif Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.0.0")
"2.4.22"
end
end

def save_config
Expand Down

0 comments on commit b8d8338

Please sign in to comment.