Skip to content

ci: skip Bundler install in gem-push workflow - #49

Merged
AdityaHirapara merged 1 commit into
masterfrom
fix/gem-push-skip-bundler
Sep 25, 2026
Merged

AdityaHirapara merged 1 commit into
masterfrom
fix/gem-push-skip-bundler

Conversation

@07souravkunda

Copy link
Copy Markdown
Collaborator

Problem

The Ruby Gem → Build + Publish workflow fails at ruby/setup-ruby (run 36133351430):

Using Bundler 2.7.1 from Gemfile.lock BUNDLED WITH 2.7.1
ERROR:  Error installing bundler:
    There are no versions of bundler (= 2.7.1) compatible with your Ruby & RubyGems
    bundler requires Ruby version >= 3.2.0. The current ruby version is 2.6.10.210.

Gemfile.lock was regenerated with Bundler 2.7.1 in ee74327, and 524db87 added the CHECKSUMS block on top. By default, setup-ruby installs the BUNDLED WITH version, but Bundler 2.7 can't be installed on the job's Ruby 2.6.10.

Fix

Set bundler: none on the setup-ruby step. The job only runs gem build and gem push, and neither uses Bundler.

  • The publish Ruby stays at 2.6.10.
  • The lockfile is unchanged. Downgrading it to Bundler 2.4.x, the last line that supports Ruby 2.6, would drop the CHECKSUMS integrity block.

Verification

  • The workflow YAML parses, and the step's with: is {"ruby-version"=>"2.6.10", "bundler"=>"none"}.
  • action.yml at the pinned setup-ruby SHA (v1.324.0) documents none as "nothing is done".
  • gem build *.gemspec succeeds locally without Bundler and produces browserstack-local-1.5.1.gem.
  • The workflow itself was not run, because it publishes to RubyGems. Re-dispatch it after merge to release.

🤖 Generated with Claude Code

The Build + Publish run failed at ruby/setup-ruby
(https://github.com/browserstack/browserstack-local-ruby/actions/runs/36133351430).
Gemfile.lock now says BUNDLED WITH 2.7.1 (regenerated in ee74327), so by
default setup-ruby runs `gem install bundler -v 2.7.1`. Bundler 2.7 needs
Ruby >= 3.2, so the install fails on the job's Ruby 2.6.10:

  There are no versions of bundler (= 2.7.1) compatible with your Ruby & RubyGems
  bundler requires Ruby version >= 3.2.0.

This job only runs `gem build` and `gem push`, and neither uses Bundler.
Set `bundler: none` so setup-ruby skips the install. The publish Ruby stays
at 2.6.10. The lockfile keeps Bundler 2.7.1 and its CHECKSUMS block, because
downgrading to Bundler 2.4.x (the last line that supports Ruby 2.6) would drop
the 524db87 integrity hardening.

Verified: the workflow YAML parses; the pinned setup-ruby SHA (v1.324.0)
documents 'none' as "nothing is done"; `gem build *.gemspec` succeeds without
Bundler. The workflow itself was not run, since it publishes to RubyGems.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited), Workspace UI (inherited)

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 07ecfe25-2f7e-4e94-b231-dfcacdbbe8f1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@07souravkunda
07souravkunda marked this pull request as ready for review September 25, 2026 12:17
@07souravkunda
07souravkunda requested a review from a team as a code owner September 25, 2026 12:17
@AdityaHirapara
AdityaHirapara merged commit 60a2b46 into master Sep 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants