Draft: fix failing pipeline
Summary
The pipeline was failing due to Bundler version compatibility issues:
- Ruby 2.7 job failed because Bundler 4.0.1 requires Ruby >= 3.2.0
- Ruby 3.2+ jobs failed because the
--pathflag was deprecated and removed in Bundler 4.x
Changes
- Added conditional Bundler installation logic: Installs Bundler 2.4.22 for Ruby 2.7 (last compatible version) and latest Bundler for Ruby >= 3.0
-
Replaced deprecated
--pathflag: Changed frombundle install --path vendor/rubyto the modern approach usingbundle config set --local path 'vendor/ruby'followed bybundle install -
Updated
.gitlab-ci.yml: Modified thebefore_scriptsection to use version-appropriate Bundler installation and modern bundle configuration syntax
Verification
All jobs in the test matrix (Ruby 2.7, 3.0, 3.1, 3.2, 3.3, 3.4) are expected to pass with these changes.
Fixes failing pipeline on !14
Session 1398346
Edited by Paul Phillips