From 4ab4139792192c064a4ee6e0a858c555e8c6a771 Mon Sep 17 00:00:00 2001 From: Derek Bender <170351+djbender@users.noreply.github.com> Date: Thu, 2 Jul 2026 10:19:41 -0700 Subject: [PATCH] Fix ruby-head CI: use its built-in bundler instead of the Gemfile.lock pin ruby-head nightlies now ship bundler 4.1.0.dev as a default gem, but setup-ruby's default bundler resolution forces the repo's pinned BUNDLED WITH 4.0.13 onto every matrix leg, corrupting the head install (Bundler::CorruptBundlerInstallError). Override bundler: default for the head leg so it uses its own bundled version. --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a59f6c1..fb948da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,11 +14,12 @@ jobs: strategy: matrix: - ruby-version: - - '3.3' - - '3.4' - - '4.0' - - 'head' + include: + - ruby-version: '3.3' + - ruby-version: '3.4' + - ruby-version: '4.0' + - ruby-version: 'head' + bundler: default steps: - uses: actions/checkout@v7.0.0 @@ -27,6 +28,7 @@ jobs: uses: ruby/setup-ruby@v1.314.0 with: ruby-version: ${{ matrix.ruby-version }} + bundler: ${{ matrix.bundler || 'Gemfile.lock' }} bundler-cache: true - name: Run tests