From 2321091cfae11b81027021bb5de1ba807da7a42e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 23 Jul 2025 21:29:46 +0200 Subject: [rubygems/rubygems] Don't create an empty `tmp/2.1` directory when running spec:deps task https://github.com/rubygems/rubygems/commit/3189d3e49b --- spec/bundler/support/builders.rb | 2 +- spec/bundler/support/helpers.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/bundler/support/builders.rb b/spec/bundler/support/builders.rb index 5cfbed3864..50fedd38f1 100644 --- a/spec/bundler/support/builders.rb +++ b/spec/bundler/support/builders.rb @@ -434,7 +434,7 @@ module Spec def _build(options = {}) full_name = "bundler-#{@version}" - build_path = @context.tmp + full_name + build_path = (options[:build_path] || @context.tmp) + full_name bundler_path = build_path + "#{full_name}.gem" require "fileutils" diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb index a0d2d2bb23..438037e08c 100644 --- a/spec/bundler/support/helpers.rb +++ b/spec/bundler/support/helpers.rb @@ -326,7 +326,7 @@ module Spec def self.install_dev_bundler extend self - with_built_bundler {|gem_path| install_gem(gem_path, pristine_system_gem_path) } + with_built_bundler(nil, build_path: tmp_root) {|gem_path| install_gem(gem_path, pristine_system_gem_path) } end def install_gem(path, install_dir, default = false) -- cgit v1.2.3