summaryrefslogtreecommitdiff
path: root/spec/bundler/support/builders.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-02-16 18:16:15 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-02-16 18:16:15 +0900
commitfbc29ce032ef18887b935b48da1b94863ca407d9 (patch)
tree640344f31a10a099dfe06ff814a15d0bda0a751d /spec/bundler/support/builders.rb
parent0301473fb523c71d8cdc4966971f31f502001185 (diff)
Avoid to fail with race condition
Diffstat (limited to 'spec/bundler/support/builders.rb')
-rw-r--r--spec/bundler/support/builders.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/support/builders.rb b/spec/bundler/support/builders.rb
index 8727b9a0b6..b6288b9463 100644
--- a/spec/bundler/support/builders.rb
+++ b/spec/bundler/support/builders.rb
@@ -421,7 +421,7 @@ module Spec
build_path = @context.tmp + full_name
bundler_path = build_path + "#{full_name}.gem"
- Dir.mkdir build_path
+ Dir.mkdir build_path unless File.directory?(build_path)
@context.shipped_files.each do |shipped_file|
target_shipped_file = shipped_file