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 the update_rubygems inconsistency (--disable-gems) #7658

Merged

Conversation

x-yuri
Copy link
Contributor

@x-yuri x-yuri commented May 13, 2024

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

gem update --system, as opposed to update_rubygems, disables gems (--disable-gems) when running setup.rb. As a result setup.rb gets reexecuted if one uses update_rubygems. Fixes #7621.

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

Apparently when --disable-gems was added to gem update --system, update_rubygems was left as is. My solution is to sync update_rubygems with gem update --system (make it pass --disable-gems to setup.rb as well).

Make sure the following tasks are checked

Copy link

welcome bot commented May 13, 2024

Thanks for opening a pull request and helping make RubyGems and Bundler better! Someone from the RubyGems team will take a look at your pull request shortly and leave any feedback. Please make sure that your pull request has tests for any changes or added functionality.

We use GitHub Actions to test and make sure your change works functionally and uses acceptable conventions, you can review the current progress of GitHub Actions in the PR status window below.

If you have any questions or concerns that you wish to ask, feel free to leave a comment in this PR or join our #rubygems or #bundler channel on Slack.

For more information about contributing to the RubyGems project feel free to review our CONTRIBUTING guide

Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @x-yuri!

@deivid-rodriguez deivid-rodriguez merged commit 89d2b25 into rubygems:master May 14, 2024
75 checks passed
deivid-rodriguez added a commit that referenced this pull request May 16, 2024
Fix the update_rubygems inconsistency (--disable-gems)

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

setup.rb gets reexecuted when invoked from update_rubygems
2 participants