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
bundler 1.17 issue #12310
Labels
Comments
8 tasks
koic
added a commit
to koic/rubocop
that referenced
this issue
Oct 25, 2023
Fixes rubocop#12310. This PR drops `base64` gem from runtime dependency. RuboCop only uses `Base64.encode64` from the `base64` gem. Therefore, there's no need to depend on the entire `base64` gem. The implementation of `Base64.encode64` is quite simple: https://github.com/ruby/base64/blob/v0.1.1/lib/base64.rb#L27-L40 This change is a better approach that has also been adopted by rack/rack#2110.
bbatsov
pushed a commit
that referenced
this issue
Oct 26, 2023
Fixes #12310. This PR drops `base64` gem from runtime dependency. RuboCop only uses `Base64.encode64` from the `base64` gem. Therefore, there's no need to depend on the entire `base64` gem. The implementation of `Base64.encode64` is quite simple: https://github.com/ruby/base64/blob/v0.1.1/lib/base64.rb#L27-L40 This change is a better approach that has also been adopted by rack/rack#2110.
5 tasks
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The pr change to set a base64 version of 0.1.1 cause load failures with bundler 1.17
with the base bundler as 1.15 to less than 3, the base64 change causes ruby 3.0.3 with bundler 1.17.XXX to fail to load, with message
Can we change this to '~> 0.1' that should allow for both and cover ruby 3.3 should it not?
Expected behavior
it should load the gem
Actual behavior
You have already activated base64 0.1.0, but your Gemfile requires base64 0.1.1. Since base64 is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports base64 as a default gem. (Gem::LoadError)
Steps to reproduce the problem
setup rubocop in your gemfile and use bundler 1.17 and try to run it.
RuboCop version
1.15.7
The text was updated successfully, but these errors were encountered: