diff options
author | Ellen Marie Dash <[email protected]> | 2023-11-30 20:20:38 -0500 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-12-07 13:56:23 +0900 |
commit | 7d32830b8ce14cc130d052a4aa67495a34ed55dc () | |
tree | e9a358076aed5e21cb1a66528969c0f8e2c406c5 /lib/rubygems/installer.rb | |
parent | 33bd95625756562f4865fbc6ad5c39e0cfbc26d6 (diff) |
[rubygems/rubygems] Make --build-root disable auto-user-install.
https://.com/rubygems/rubygems/commit/6a06b0763f
-rw-r--r-- | lib/rubygems/installer.rb | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -675,14 +675,16 @@ class Gem::Installer @build_args = options[:build_args] - @gem_home = @install_dir - @gem_home ||= if options[:user_install] - Gem.user_dir - elsif !ENV.key?("GEM_HOME") && (File.exist?(Gem.dir) && !File.writable?(Gem.dir)) - say "Defaulting to user installation because default installation directory (#{Gem.dir}) is not writable." - Gem.user_dir - else - Gem.dir end # If the user has asked for the gem to be installed in a directory that is |