Skip to content

Commit

Permalink
Add rake to the LOAD_PATH:
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
Edouard-chin committed Jan 4, 2024
1 parent 9d3babd commit 006a22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ci_runner/runners/minitest_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 006a22a

Please sign in to comment.