diff options
author | Vít Ondruch <[email protected]> | 2023-12-12 14:47:15 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-12-13 12:16:55 +0900 |
commit | befbcfd90c4fbbdc3cc3fa3a083ff6868a2bfb02 () | |
tree | 3c5ae6ed94096e2c7dac598f3938be352d94b86b /lib/rubygems/installer.rb | |
parent | 1fa5dd883e286a768a9dfa82ef3de562fcdabd01 (diff) |
[rubygems/rubygems] Explain the 3 states `options[:user_install]` can have.
This was issue previously, so hopefully this comment tries to state this explicitly for future readers. https://.com/rubygems/rubygems/commit/8ccd830f85
-rw-r--r-- | lib/rubygems/installer.rb | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -680,6 +680,10 @@ class Gem::Installer unless @gem_home # `--build-root` overrides `--user-install` and auto-user-install if @build_root.nil? if options[:user_install] @gem_home = Gem.user_dir elsif options[:user_install].nil? && !ENV.key?("GEM_HOME") && (File.exist?(Gem.dir) && !File.writable?(Gem.dir)) |