for legacy reasons, in Bundler 1, the ruby
scope isnt appended when the setting comes from ENV
or the global config, nor do we respect :disable_shared_gems
# File lib/bundler/settings.rb, line 225
def path
key = key_for(:path)
path = ENV[key] || @global_config[key]
if path && [email protected]?(key) && !@local_config.key?(key)
return Path.new(path, Bundler.feature_flag.global_path_appends_ruby_scope?, false, false)
end
system_path = self["path.system"] || (self[:disable_shared_gems] == false)
Path.new(self[:path], true, system_path, Bundler.feature_flag.default_install_uses_path?)
end