From 006a22aa8a27b48dc19e2585bb9532508517f2d3 Mon Sep 17 00:00:00 2001 From: Edouard CHIN Date: Thu, 4 Jan 2024 19:04:31 +0100 Subject: [PATCH] Add rake to the LOAD_PATH: - There is a change in Rubygem 3.4.0 that I couldn't identify which makes `bundle exec ruby -r'rake'` to fail if rake is not in the Gemfile. This used to work with Rubygem 3.3.26 (last version in the 3.3 serie). Adding rake to the LOAD_PATH manually fixes it. --- lib/ci_runner/runners/minitest_runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ci_runner/runners/minitest_runner.rb b/lib/ci_runner/runners/minitest_runner.rb index e5490dc..c580221 100644 --- a/lib/ci_runner/runners/minitest_runner.rb +++ b/lib/ci_runner/runners/minitest_runner.rb @@ -89,7 +89,7 @@ def start! env["RUBY"] = ruby_path.to_s if ruby_path&.exist? env["BUNDLE_GEMFILE"] = gemfile_path.to_s if gemfile_path&.exist? - execute_within_frame(env, "bundle exec ruby -r'rake/testtask' #{rakefile_path}") + execute_within_frame(env, "bundle exec ruby -I'#{rake_load_path}' -r'rake/testtask' #{rakefile_path}") DRb.stop_service end