Skip to content
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

Require Ruby 3.1 in Gemfile #2405

Merged
merged 1 commit into from
Aug 2, 2024
Merged

Require Ruby 3.1 in Gemfile #2405

merged 1 commit into from
Aug 2, 2024

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Aug 2, 2024

The ruby-lsp gem supports 3.0 or above, but its rbi development dependency requires Ruby 3.1. And because dependabot always uses the lowest required Ruby to run the job, it's always failing to find the right rbi version.

Hopefully this change will make dependabot use Ruby 3.1 and above instead.

The `ruby-lsp` gem supports 3.0 or above, but its `rbi` development
dependency requires Ruby 3.1. And because dependabot always uses the lowest
required Ruby to run the job, it's always failing to find the right `rbi`
version.

Hopefully this change will make dependabot use Ruby 3.1 and above instead.
@st0012 st0012 added the chore Chore task label Aug 2, 2024
@st0012 st0012 requested a review from a team as a code owner August 2, 2024 14:46
@st0012 st0012 requested a review from andyw8 August 2, 2024 14:46
@@ -156,5 +156,8 @@ DEPENDENCIES
syntax_tree (>= 6.1.1, < 7)
tapioca (~> 0.13)

RUBY VERSION
ruby 3.3.4p94
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 will this be noisy if people have different patch levels of Ruby on their machines?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the Ruby version bundler will prefer using. The ruby declaration in Gemfile though is a requirement.

Copy link
Contributor

@andyw8 andyw8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try it

@st0012 st0012 added the server This pull request should be included in the server gem's release notes label Aug 2, 2024
@st0012 st0012 merged commit 38c0e71 into main Aug 2, 2024
40 checks passed
@st0012 st0012 deleted the require-ruby-3.1-in-gemfile branch August 2, 2024 16:41
@st0012
Copy link
Member Author

st0012 commented Aug 2, 2024

Dependabot still decided to use Ruby 3.0.6 😅

tapioca >= 0.11.11 requires Ruby >= 3.1.\nSo, because Gemfile depends on tapioca ~> 0.13\n and current Ruby version is = 3.0.6,\n version solving has failed."}

st0012 added a commit that referenced this pull request Aug 2, 2024
st0012 added a commit that referenced this pull request Aug 2, 2024
* Revert #2405 as it doesn't work

* Update rexml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Chore task server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants