Skip to content

Commit 5d5f0c3

Browse files
committed
[Setup] Dont install bundler when there is no default specs dir
1 parent 41973ff commit 5d5f0c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/rubygems/commands/setup_command.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ def fake_spec.full_gem_path
352352
def install_default_bundler_gem
353353
return unless Gem::USE_BUNDLER_FOR_GEMDEPS
354354

355+
return unless File.directory?(Gem::Specification.default_specifications_dir)
356+
355357
bundler_spec = Gem::Specification.load("bundler/bundler.gemspec")
356358
bundler_spec.files = Dir["bundler/{*.md,{lib,exe,man}/**/*}"]
357359
bundler_spec.executables -= %w[bundler bundle_ruby]

0 commit comments

Comments
 (0)