Skip to content
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

Fix bundle update --bundler when latest version does not support current ruby #7310

Merged
merged 3 commits into from
Dec 21, 2023

Conversation

deivid-rodriguez
Copy link
Member

@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
Member

@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 merged commit 28cc13a into master Dec 21, 2023
80 checks passed
@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
2 participants