Improve hint on conflict error message #3977
Improve hint on conflict error message #3977
Conversation
Given this previous configuration: ```ruby gem 'rails', '~> 4.1.11' gem 'sass-rails', '~> 4.0.3' ``` When changing both gem versions: ```ruby gem 'rails', '~> 4.2.4' gem 'sass-rails', '~> 5.0.0' ``` And running `bundle update rails`, you see this error message: ``` You have requested: sass-rails ~> 5.0.0 The bundle currently has sass-rails locked at 4.0.3. Try running `bundle update sass-rails` ``` This commit adds a hint to run `bundle update rails sass-rails`: ``` You have requested: sass-rails ~> 5.0.0 The bundle currently has sass-rails locked at 4.0.3. Try running `bundle update sass-rails` If you are updating multiple gems in your Gemfile at once, try passing them all to `bundle update` ```
I would have provided the direct example to run the command with any/all gems currently being updated, but I wasn't sure where I could find that information |
Uh... huh. So this is, I guess, very counter-intuitive, but what you actually wanted from the very beginning was to just run The Does that make sense? |
Hasn't that always been how Bundler works? I've always thought that I didn't specify before, but I'm using Bundler 1.10.6 |
😳 You're completely right. Once a gem is locked, you do need to use Now I'm really curious... knowing that gems will stay locked unless you pass their name to |
👍🏻 |
Improve hint on conflict error message
I don't know what I was expecting, but I didn't yet know that I could pass multiple gems to Thanks for merging this 😸 my first bundler PR! |
Given this previous configuration:
When changing both gem versions:
And running
bundle update rails
, you see this error message:This commit adds a hint to run
bundle update rails sass-rails
: