Skip to content

Conversation

@deivid-rodriguez
Copy link
Contributor

@deivid-rodriguez deivid-rodriguez commented Dec 19, 2023

What was the end-user or developer problem that led to this PR?

bundle update --bundler is also suffering from the issue of not being able to tell if the latest bundler supports the current ruby or not :(

What is your fix for the problem, implemented in this PR?

My fix is to add the proper filtering so that the correct version is selected, however, that can't be magically propagated to the Bundler version users on old rubies are running, so the issue will keep showing up for users of old rubies that for some reason what to upgrade Bundler.

I didn't write tests because they are tricky due to the implementation hardcoding rubygems.org. Once #5498 is fixed, it would become easier.

Fixes #7308.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez changed the title Fix bundle update --bundler when latest version does not support cu… Fix bundle update --bundler when latest version does not support current ruby Dec 19, 2023
@segiddins
Copy link
Contributor

@deivid-rodriguez maybe using artifice for specs would make it easier, since that doesn't care what the host is?

@deivid-rodriguez deivid-rodriguez force-pushed the fix-bundle-update-bundler branch 3 times, most recently from e729d5e to fe4568f Compare December 21, 2023 00:01
@deivid-rodriguez deivid-rodriguez force-pushed the fix-bundle-update-bundler branch from fe4568f to c5f4c91 Compare December 21, 2023 11:37
@deivid-rodriguez deivid-rodriguez merged commit 28cc13a into master Dec 21, 2023
@deivid-rodriguez deivid-rodriguez deleted the fix-bundle-update-bundler branch December 21, 2023 12:48
deivid-rodriguez added a commit that referenced this pull request Dec 21, 2023
Fix `bundle update --bundler` when latest version does not support current ruby

(cherry picked from commit 28cc13a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bundler (= 2.5.1) required by user-specified dependency / undefined method `request' for nil:NilClass (NoMethodError)

3 participants