Draft: fix failing pipeline
Summary
The pipeline was failing due to two critical issues:
- Bundler version incompatibility with Ruby 2.7 - The latest Bundler requires Ruby >= 3.2.0
-
Deprecated
--pathflag in Bundler 4.x - Ruby 3.3 & 3.4 jobs were failing due to the deprecated configuration syntax
Changes
- Added conditional logic to install Bundler 2.4.22 specifically for Ruby 2.7, while Ruby 3.0+ continues to use the latest Bundler version
- Updated the
bundle configcommand frombundle config set pathtobundle config set --local pathto fix Bundler 4.x compatibility - Modified the
.gitlab-ci.ymlbefore_scriptsection to implement both fixes
Verification
--local flag for path configuration
All four previously failed jobs should now pass:
- rspec: [2.7] - Will use Bundler 2.4.22 (compatible with Ruby 2.7)
- rspec: [3.2] - Will use latest Bundler with correct config syntax
- rspec: [3.3] - Will use Bundler 4.x with correct config syntax
- rspec: [3.4] - Will use Bundler 4.x with correct config syntax
Fixes failing pipeline on !14
Session 1398361
Edited by Paul Phillips