From 9c97b644188adae4dde1d4ae7280e29a062f3816 Mon Sep 17 00:00:00 2001 From: Jason Frey Date: Thu, 21 Nov 2024 17:27:21 -0500 Subject: [PATCH] Force bundler to the latest version on Ruby 3.1 We noticed that our cache sizes were growing enormously, namely in the git repositories, where the git directory is not git gc'd. The bundler shipped with Ruby 3.1, bundler 2.3.27, exhibits the problem, whereas newer bundlers > 2.4.0 seem to have mitigated the problem because of the underlying change to how git respositories are shallow clones. --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4f3ca208..32eb2268 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,6 +37,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: "${{ matrix.ruby-version }}" + bundler: "${{ matrix.ruby-version == '3.1' && 'latest' || 'default' }}" bundler-cache: true timeout-minutes: 30 - name: Prepare tests