Skip to content

Commit 3a866e4

Browse files
yahondaclaude
andcommitted
ci: Revert Bundler 4.0.6 pin and use rubygems: latest in workflows
Bundler 4.0.12 (https://blog.rubygems.org/2026/05/20/4.0.12-released.html) includes ruby/rubygems#9544, which fixes the multi-gemspec git source resolver regression tracked in ruby/rubygems#9536 — the bug that PR #290 worked around by pinning Bundler to 4.0.6 in the RuboCop workflow. - Drop the BUNDLER_VERSION env var and the "Pin Bundler to 4.0.6" step from rubocop.yml; the workaround is no longer needed. - Add `rubygems: latest` to the workflows that exercise modern CRuby (rubocop, test, test_11g, test_11g_ojdbc11), matching the pattern release.yml already uses, so CI resolves Bundler 4.0.12 instead of whatever ships in the setup-ruby tarball. setup-ruby handles JRuby via `gem update --system`, so JRuby matrix entries are safe. ruby_head.yml and jruby_head.yml are intentionally left alone — per setup-ruby docs, head builds are not updated. truffleruby.yml and test_gemfiles.yml are also untouched (TruffleRuby compatibility, and test_gemfiles targets Ruby 2.4–3.3 which cannot install RubyGems 4.x). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c7ade38 commit 3a866e4

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/rubocop.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,14 @@ jobs:
1010
build:
1111

1212
runs-on: ubuntu-latest
13-
env:
14-
BUNDLER_VERSION: 4.0.6
1513

1614
steps:
1715
- uses: actions/checkout@v6
1816
- name: Set up Ruby 4.0
1917
uses: ruby/setup-ruby@v1
2018
with:
2119
ruby-version: "4.0"
22-
- name: Pin Bundler to 4.0.6 (workaround for ruby/rubygems#9536)
23-
run: |
24-
gem install bundler -v 4.0.6
25-
ruby --version
26-
gem --version
27-
bundle --version
20+
rubygems: latest
2821
- name: Build and run RuboCop
2922
run: |
3023
BUNDLE_ONLY=rubocop bundle install --jobs 4 --retry 3

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
uses: ruby/setup-ruby@v1
5151
with:
5252
ruby-version: ${{ matrix.ruby }}
53+
rubygems: latest
5354
- name: Create symbolic link for libaio library compatibility
5455
run: |
5556
sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1

.github/workflows/test_11g.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
uses: ruby/setup-ruby@v1
5757
with:
5858
ruby-version: ${{ matrix.ruby }}
59+
rubygems: latest
5960
- name: Create symbolic link for libaio library compatibility
6061
run: |
6162
sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1

.github/workflows/test_11g_ojdbc11.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
uses: ruby/setup-ruby@v1
5353
with:
5454
ruby-version: ${{ matrix.ruby }}
55+
rubygems: latest
5556
- name: Create symbolic link for libaio library compatibility
5657
run: |
5758
sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1

0 commit comments

Comments
 (0)