-
Notifications
You must be signed in to change notification settings - Fork 188
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
rails command loads the default Bundler 1.17.2 instead of newer installed Bundler 2.1.4 #1987
Comments
@eregon this can be interesting. This happens after updating TruffleRuby nightly. It's interesting why so many times is |
It would be more interesting to compare to CRuby 2.6, 2.7 only has Bundler 2 and so many other changes, so it's not really comparable. I'll try to reproduce. |
@eregon the situation is identical with 2.6
|
I can reproduce with just: # Gemfile
source 'https://rubygems.org'
gem "path"
# test.rb
require 'bundler/setup'
p Bundler::VERSION
I'll need to find out what selects Bundler 2 on MRI in this case, and what happens in the opposite case (if the Gemfile.lock is v1) |
@eregon applying this change should fix this: |
@bjfish Nice find! How did you find out this commit was needed? |
@eregon A little debugging and I recognized the issue from before I think when rubygems tests were picking up our version of rubygems. So, this may be covered by rubygems tests: https://github.com/rubygems/rubygems/pull/3499/files#diff-254db4345cc461121a9d4dbfd390bc25R385 |
@eregon Yes, I'm make a PR with the fix. |
@eregon I guess this is fixed |
Test added in b9669c4 |
Note: Comment out ruby version in
Gemfile
beforebundle install
TruffleRuby:
Ruby 2.7
The text was updated successfully, but these errors were encountered: