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
rubocop-ast release made rubocop 1.6.1 require ruby 2.5.0 #9768
Comments
We discussed the subject here for RuboCop #9648, but I guess we didn't consider the impact for rubocop-ast. |
Just to be clear - our expectations was that in a case like yours you'd the get the news version of rubocop-ast that's installable on Ruby 2.4. I'm not sure why that's not actually happening. |
Sorry you're having issues. Indeed, it shouldn't be breaking. This may be a bug in the rubygems you are using that has been fixed? Could you try I was able to install rubocop both 1.12.1 and 1.6.1 on Ruby 2.4.10 with:
|
|
rubocop version 1.6.1 has dependency constraint:
rubocop-ast >= 1.2.0, < 2.0
The recent releases of rubocop-ast (1.4.2 and 1.5.0) satisfy these constraints so they introduce a dependency on ruby version >= 2.5.0. This breaks rubocop version 1.6.1 on ruby 2.4.
Expected behavior
It's unexpected that released versions of rubocop would change their ruby version requirements. Should a ruby version bump in rubocop-ast be treated as a major version?
Actual behavior
Steps to reproduce the problem
Install rubocop version 1.6.1 when using ruby 2.4.2.
RuboCop version
The text was updated successfully, but these errors were encountered: