FS#70960 - [rubygems] better way to do --user-install with operating_system.rb
Attached to Project:
Arch Linux
Opened by Felipe Contreras (felipec) - Thursday, 20 May 2021, 19:13 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:26 GMT
Opened by Felipe Contreras (felipec) - Thursday, 20 May 2021, 19:13 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:26 GMT
|
Details
Currently rubygems installs an /etc/gemrc file to do `gem:
--user-install`.
This works, if task def self.operating_system_defaults { 'gem' => '--user-install' } end That way we only need to add one file. |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:26 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/rubygems/issues/4
Saturday, 25 November 2023, 20:26 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/rubygems/issues/4
FS#70961contains the more correct operating_system.rb that calls remove_method in order to remove warnings with `ruby -w`. Fedora does the same.* WARNING: Found --user-install in /etc/gemrc, please remove it, as it will break rubygems in RVM.
If it is intended or a mistake export rvm_ignore_gemrc_issues=1 to avoid this warning.
Again... We need to consider removing /etc/gemrc.
What's the interest of def self.operating_system_defaults over /etc/gemrc?
Using defaults/operating_system.rb is better than /etc/gemrc, not just for RVM, but in general. That's how most distributions set their defaults, and that's the whole purpose of the file.
The main advantage of defaults/operating_system.rb for me is that if in the future somebody decides to actually take a look at all the issues concerning ruby gems, only one file will need to be changed: defaults/operating_system.rb.
I'll flip the question to you: why /etc/gemrc over defaults/operating_system.rb?