Commit a434867
committed
ci: Pin Bundler to 4.0.6 in RuboCop workflow as workaround for ruby/rubygems#9536
The RuboCop workflow started failing on master at 2026-05-12T01:01 UTC with:
Could not find compatible versions
against the multi-gemspec git source `rails/rails` whose top-level gem is in
a filtered-out group when `BUNDLE_ONLY=rubocop bundle install` runs under
Ruby 4.0.4 (Bundler 4.0.11). The regression is tracked in
ruby/rubygems#9536; Bundler 4.0.5 and 4.0.6 succeed while 4.0.7+ fail.
Pin Bundler explicitly so the workflow keeps rolling on `ruby-version: "4.0"`:
- set BUNDLER_VERSION=4.0.6 at the job level so every bundle invocation
resolves to that version
- gem install bundler -v 4.0.6 so the version is actually present (the
ruby-builder tarball ships only one Bundler, and current 4.0.x tarballs
no longer ship 4.0.6)
Drop both once Bundler ships a fix for ruby/rubygems#9536.1 parent 959e88b commit a434867
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
0 commit comments