You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now I reverted the change that caused this issue and released that as 2.2.11. I'll try to reintroduce the secure mode I wanted to introduce without breaking this in future releases.
Isn't there a test of like it should install the specified versions of gems a test case in bundler? Silently upgrading locked gems can be a serious failure, shouldn't 2.2.10 be yanked?
Isn't there a test of like it should install the specified versions of gems a test case in bundler?
There are a lot of cases that test this, have a look at our test suite if you're interested. We just failed to catch this specific situation unfortunately, hopefully we'll cover it better next time.
Silently upgrading locked gems can be a serious failure, shouldn't 2.2.10 be yanked?
In my experience yanking ruby gems ends up being more harmful that helpful, so I won't be yanking 2.2.10 as I already stated in #4380 (comment).
Activity
[-]bundler 2.2.10[/-][+]bundler 2.2.10 installs wrong gem versions[/+]deivid-rodriguez commentedon Feb 16, 2021
Thanks for reporting this. Can you share a reproducible example?
deivid-rodriguez commentedon Feb 16, 2021
I think I can repro, but I still appreciate an example.
beanieboi commentedon Feb 16, 2021
Gemfile:
Gemfile.lock
with bundler 2.2.10 run:
$ bundle config path vendor/bundle$ bundle installafter that the Gemfile.lock looks like this:
diff for better visibility
deivid-rodriguez commentedon Feb 17, 2021
For now I reverted the change that caused this issue and released that as 2.2.11. I'll try to reintroduce the secure mode I wanted to introduce without breaking this in future releases.
krobertson commentedon Feb 17, 2021
Isn't there a test of like
it should install the specified versions of gemsa test case in bundler? Silently upgrading locked gems can be a serious failure, shouldn't 2.2.10 be yanked?deivid-rodriguez commentedon Feb 17, 2021
There are a lot of cases that test this, have a look at our test suite if you're interested. We just failed to catch this specific situation unfortunately, hopefully we'll cover it better next time.
In my experience yanking ruby gems ends up being more harmful that helpful, so I won't be yanking 2.2.10 as I already stated in #4380 (comment).