ci: skip Bundler install in gem-push workflow - #49
Merged
Merged
Conversation
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>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited), Workspace UI (inherited) Review profile: ASSERTIVE Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
AdityaHirapara
approved these changes
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Ruby Gem → Build + Publish workflow fails at
ruby/setup-ruby(run 36133351430):Gemfile.lockwas regenerated with Bundler 2.7.1 in ee74327, and 524db87 added theCHECKSUMSblock on top. By default, setup-ruby installs theBUNDLED WITHversion, but Bundler 2.7 can't be installed on the job's Ruby 2.6.10.Fix
Set
bundler: noneon the setup-ruby step. The job only runsgem buildandgem push, and neither uses Bundler.CHECKSUMSintegrity block.Verification
with:is{"ruby-version"=>"2.6.10", "bundler"=>"none"}.action.ymlat the pinned setup-ruby SHA (v1.324.0) documentsnoneas "nothing is done".gem build *.gemspecsucceeds locally without Bundler and producesbrowserstack-local-1.5.1.gem.🤖 Generated with Claude Code