Add Gem.disable_system_update_message to disable gem update --system if needed. #3720
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is initial take on possibility to disable
gem update --system
useful for distribution maintainers.For Debian, this can be set at https://salsa.debian.org/ruby-team/rubygems-integration/-/blob/39d3a082f568ec0b6c9acd10e54a4a31a08bd8b5/lib/rubygems/defaults/operating_system.rb#L56. End-users can disable this by providing
DEBIAN_DISABLE_RUBYGEMS_INTEGRATION
as they can do that already for the rest of integration patches.For Fedora, this can be set at https://src.fedoraproject.org/rpms/rubygems/blob/master/f/operating_system.rb. Not sure if any env variable is needed to make users able to disable this.
@terceiro (Debian ruby maintainer) @voxik (Fedora ruby maintainer), would this be useful for you ❓
example