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 error when Bundler installation is corrupted #7642

Merged
merged 1 commit into from May 13, 2024

Conversation

deivid-rodriguez
Copy link
Member

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

If one upgrades the default copy of Bundler through gem update --system, and then reinstalls Ruby without removing the previous copy. Then the new installation will have a correct default bundler gemspec, but a higher copy installed in site_dir.

This causes a crash when running Bundler and prints the bug report template.

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

This could probably be fixed in Ruby install script, by removing any previous Bundler default copies, but if the problem is already there, I think it's best to print a proper user error.

Fixes #7381.

Make sure the following tasks are checked

If one upgrades the default copy of Bundler through `gem update
--system`, and then reinstalls Ruby without removing the previous copy.
Then the new installation will have a correct default bundler gemspec,
but a higher copy installed in site_dir.

This causes a crash when running Bundler and prints the bug report
template.

This could probably be fixed in Ruby install script, by removing any
previous Bundler default copies, but if the problem is already there, I
think it's best to print a proper user error.
@deivid-rodriguez deivid-rodriguez force-pushed the deivid-rodriguez/bundler-corrupt-install branch from 5ca72b0 to ada6de7 Compare May 9, 2024 13:59
@deivid-rodriguez deivid-rodriguez merged commit a536147 into master May 13, 2024
83 checks passed
@deivid-rodriguez deivid-rodriguez deleted the deivid-rodriguez/bundler-corrupt-install branch May 13, 2024 09:19
deivid-rodriguez added a commit that referenced this pull request May 16, 2024
…pt-install

Fix error when Bundler installation is corrupted

(cherry picked from commit a536147)
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.

Sorting in spec_set.rb works on Ruby 3.2.2 and fails on Ruby 3.3.0 due to nil member
1 participant