-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Fix --source
option causing incorrect gem unlocking
#3763
Conversation
Thanks for the patch! As I commented over in #3759, we can't remove the I'd also love to ship a documented Thanks! |
Ha — I just realised why the tests are failing. Too much of the wrong kind of thinking! New commit to (hopefully) fix. Anyway, thanks for the response! Hearing you on the backwards-compatibility thing. For this PR, I could have a go at fixing #3761 and the issue detailed in the OP — while preserving the undocumented Also happy to take a look at Piqued my curiosity on the potential |
Awesome! That all sounds great. :) |
Looks like I've still got plenty of work to do making this pass with old versions of RubyGems(?) but I think this is more or less in its final form. It fixes #3761, and the I'll have a go at correcting the behaviour in the |
This is super impressive, thanks! 😀 |
So I'm finding the tests here a little hard to figure out — seems like travis isn't running on this PR anymore? And also I'm not sure if master is green right now? Could you advise? As far as I can work out the tests here pass (for me), except |
@neoeno I had travis re-run the PR, it looks like the only failures are due to rubocop, |
Rebased and corrected styles at #3948, which will merge when the tests pass. |
Rebase and correct styles on #3763 None
Ah — sorry about that! Thought I'd caught all those. |
When --source is provided.
(CC #3948) OK —
One test fail remains: https://travis-ci.org/bundler/bundler/jobs/76903851 — is this expected or unexpected? Seems like an odd state it's got into. |
We've been fighting with that particular periodic test failure lately—just merged something to master that I think will help. In the meantime, I've just restarted that particular job and I expect it to pass. Thanks for sticking with this, and thanks again for all your work on this set of issues! |
@homu r+ |
📌 Commit ac30a5b has been approved by |
Fix `--source` option causing incorrect gem unlocking Fixes #3759 and #3761. And also another issue I found where if: 1. You have a Gemfile with a group, 2. That group contains a gem with the same name as a source 3. And you run `bundle update --group group_name` 4. Then all gems associated with the source will be updated. The 3 cases fixed here are all pretty subtle. The specs should make it clearer, and the github issues above add more context. Note that this PR removes the ability to use `bundle update --source gem_name` as a hacky way to update a gem 'conservatively'. This is detailed in #3759.
💔 Test failed - status |
Looks like another strange result. Let me know if there's anything I should be doing! |
Ugh, that must be the RubyGems connectivity issues that are happening right now. :( On Mon, Aug 24, 2015 at 2:47 AM, Caden Lovelace [email protected]
|
Fix `--source` option causing incorrect gem unlocking
Fixes #3759 and #3761.
And also another issue I found where if:
bundle update --group group_name
The 3 cases fixed here are all pretty subtle. The specs should make it clearer, and the github issues above add more context.
Note that this PR removes the ability to use
bundle update --source gem_name
as a hacky way to update a gem 'conservatively'. This is detailed in #3759.