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

Fix a build error when using Ruby 2.6 runtime #263

Merged
merged 1 commit into from May 2, 2023

Conversation

koic
Copy link
Member

@koic koic commented May 2, 2023

The master brach of RuboCop has been dropped Ruby 2.6 runtime support. rubocop/rubocop#11791

This PR fixes the following build error:

Run cd ../rubocop && bundle install --jobs 3 --retry 3
Your RubyGems version (3.0.3.1) has a bug that prevents `required_ruby_version` from working for Bundler.
Any scripts that use `gem install bundler` will break as soon as Bundler drops support for your Ruby version.
Please upgrade RubyGems to avoid future breakage and silence this warning by running `gem update --system 3.2.3`
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Could not find compatible versions

Because every version of rubocop depends on Ruby >= 2.7.0
and Gemfile depends on rubocop >= 0,
Ruby >= 2.7.0 is required.
So, because current Ruby version is = 2.6.10,
version solving has failed.

https://github.com/rubocop/rubocop-ast/actions/runs/4857086508/jobs/8657259864

The master brach of RuboCop has been dropped Ruby 2.6 runtime support.
rubocop/rubocop#11791

This PR fixes the following build error:

```
Run cd ../rubocop && bundle install --jobs 3 --retry 3
Your RubyGems version (3.0.3.1) has a bug that prevents `required_ruby_version` from working for Bundler.
Any scripts that use `gem install bundler` will break as soon as Bundler drops support for your Ruby version.
Please upgrade RubyGems to avoid future breakage and silence this warning by running `gem update --system 3.2.3`
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Could not find compatible versions

Because every version of rubocop depends on Ruby >= 2.7.0
and Gemfile depends on rubocop >= 0,
Ruby >= 2.7.0 is required.
So, because current Ruby version is = 2.6.10,
version solving has failed.
```

https://github.com/rubocop/rubocop-ast/actions/runs/4857086508/jobs/8657259864
@marcandre marcandre merged commit 94a202e into rubocop:master May 2, 2023
18 checks passed
@marcandre
Copy link
Contributor

Thank you

@koic koic deleted the fix_a_build_error branch May 2, 2023 04:25
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.

None yet

2 participants