New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup-ruby fails when Gemfile.lock has BUNDLED WITH 2.4.0.dev #394
Comments
Thank you for the report. PR welcome. |
The problem is 2.4.0.dev doesn't seem an actual release of Bundler.
So even it we let this check accept it,
But that's basically a changing Bundler I guess. How should we deal with this @deivid-rodriguez ? A simple workaround is not using a dev version of Bundler to create your Gemfile.lock, or not check Gemfile.lock in (if that makes sense for your case), or use the Lines 17 to 23 in c4fe7bd
|
I guess allow parsing that kind of version and skip the |
We cannot just skip the |
Not sure what If users are committing a That said, I'm sure you know what's best better, was just throwing out my naive opinion since you asked. |
Just saw your approach. Ignoring it seems totally fine too 👍. |
Thanks for the feedback :) I wasn't sure what that dev means if it was "dev version" (it is) or some kind of pre-release. |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [cypress-io/github-action](https://togithub.com/cypress-io/github-action) | action | patch | `v4.2.0` -> `v4.2.1` | | [ruby/setup-ruby](https://togithub.com/ruby/setup-ruby) | action | minor | `v1.123.0` -> `v1.124.0` | --- ### Release Notes <details> <summary>cypress-io/github-action</summary> ### [`v4.2.1`](https://togithub.com/cypress-io/github-action/releases/tag/v4.2.1) [Compare Source](https://togithub.com/cypress-io/github-action/compare/v4.2.0...v4.2.1) ##### Bug Fixes - **deps:** fix set-output command warnings from GitHub [cypress-io/github-action#621 </details> <details> <summary>ruby/setup-ruby</summary> ### [`v1.124.0`](https://togithub.com/ruby/setup-ruby/releases/tag/v1.124.0): Ignore Bundler dev version in Gemfile.lock [Compare Source](https://togithub.com/ruby/setup-ruby/compare/v1.123.0...v1.124.0) - Fixes [ruby/setup-ruby#394 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/weareinreach/InReach). PR-URL: #70 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [cypress-io/github-action](https://togithub.com/cypress-io/github-action) | action | patch | `v4.2.0` -> `v4.2.1` | | [ruby/setup-ruby](https://togithub.com/ruby/setup-ruby) | action | minor | `v1.123.0` -> `v1.124.0` | --- ### Release Notes <details> <summary>cypress-io/github-action</summary> ### [`v4.2.1`](https://togithub.com/cypress-io/github-action/releases/tag/v4.2.1) [Compare Source](https://togithub.com/cypress-io/github-action/compare/v4.2.0...v4.2.1) ##### Bug Fixes - **deps:** fix set-output command warnings from GitHub [cypress-io/github-action#621 </details> <details> <summary>ruby/setup-ruby</summary> ### [`v1.124.0`](https://togithub.com/ruby/setup-ruby/releases/tag/v1.124.0): Ignore Bundler dev version in Gemfile.lock [Compare Source](https://togithub.com/ruby/setup-ruby/compare/v1.123.0...v1.124.0) - Fixes [ruby/setup-ruby#394 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/weareinreach/InReach). PR-URL: #70 Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
I confirmed it works. Thanks |
Ensure the following before filing this issue
I verified it reproduces with the latest version with
- uses: ruby/setup-ruby@v1
(see Versioning policy)I tried to reproduce the issue locally by following the workflow steps (including all commands done by
ruby/setup-ruby
, except forDownloading Ruby
&Extracting Ruby
),and it did not reproduce locally (if it does reproduce locally, it's not a ruby/setup-ruby issue)
Are you running on a GitHub-hosted runner or a self-hosted runner?
GitHub-hosted runner
The workflow code or a link to the workflow file
https://github.com/Ishotihadus/ruby-workflow-test/blob/main/.github/workflows/test.yaml
Link to the log of a failed workflow job, or to a gist with the output
https://gist.github.com/Ishotihadus/ceeec53cc6d20c23c64583b501645a48
The command and output of the failing step
Any other notes?
I think this is because bundler.js detect bundler version by
/^\d+(?:\.\d+){0,2}$/
.setup-ruby/bundler.js
Line 98 in ece8276
Bundler is sometimes released under version numbers with suffix, and I think handling this problem is helpful.
https://rubygems.org/gems/bundler/versions
The text was updated successfully, but these errors were encountered: