From 82af4a74d2926750ab71276ceccab7036985dd0c Mon Sep 17 00:00:00 2001 From: Jason Frey Date: Mon, 24 Jan 2022 11:21:14 -0500 Subject: [PATCH] Merge pull request #246 from bdunne/bundler_reinstall Ensure that the bundler version in the script matches the container (cherry picked from commit 769553a3276de66217bb55b2d1274428e3f6e553) --- lib/manageiq/rpm_build/generate_gemset.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/manageiq/rpm_build/generate_gemset.rb b/lib/manageiq/rpm_build/generate_gemset.rb index 78c65060..22010b2d 100755 --- a/lib/manageiq/rpm_build/generate_gemset.rb +++ b/lib/manageiq/rpm_build/generate_gemset.rb @@ -48,7 +48,7 @@ def restore_environment_variables def recreate_gem_home FileUtils.rm_rf(GEM_HOME) if GEM_HOME.exist? FileUtils.mkdir(GEM_HOME) - cmd = "gem install bundler" + cmd = "gem install bundler:#{`bundle -v`.chomp.split(" ").last}" shell_cmd(cmd) end