summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-12-14 22:59:15 +0100
committergit <svn-admin@ruby-lang.org>2023-12-15 11:52:38 +0000
commit7c72755da8577947f564aeb264a201f62b032996 (patch)
treef43820033fd910fa0254bda8d674505e84d36cbf /lib
parent4d5bfa7c3b3f21ed32f32542d66922d0481004bb (diff)
[rubygems/rubygems] Fix `ruby setup.rb` leaving traces in source folder
It's the `Gem::Installer` below what installs executables, and the code being deleted here is now actually creating a `gems/` folder in the root of the source repo when running `ruby setup.rb`. https://github.com/rubygems/rubygems/commit/0e69a8b0d6
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/commands/setup_command.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb
index 52f0e54236..3f38074280 100644
--- a/lib/rubygems/commands/setup_command.rb
+++ b/lib/rubygems/commands/setup_command.rb
@@ -395,12 +395,6 @@ By default, this RubyGems will install gem as:
each {|default_gem| rm_r File.join(bundler_spec.gems_dir, default_gem) }
end
- bundler_bin_dir = new_bundler_spec.bin_dir
- mkdir_p bundler_bin_dir, mode: 0o755
- bundler_spec.executables.each do |e|
- cp File.join("bundler", new_bundler_spec.bindir, e), File.join(bundler_bin_dir, e)
- end
-
require_relative "../installer"
Dir.chdir("bundler") do