From d2b6531f01c0feb95f4410c458582565d380a9ec Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Sun, 15 Jun 2025 14:05:25 +0300 Subject: [PATCH] Replace hardlinks with symlinks for `brew tests` Fixes https://github.com/Homebrew/brew/issues/20114 --- Library/Homebrew/test/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/test/spec_helper.rb b/Library/Homebrew/test/spec_helper.rb index cc62d453c7..8bf8ea63d0 100644 --- a/Library/Homebrew/test/spec_helper.rb +++ b/Library/Homebrew/test/spec_helper.rb @@ -252,7 +252,7 @@ RSpec.configure do |config| # Link original API cache files to test cache directory. Pathname("#{ENV.fetch("HOMEBREW_CACHE")}/api").glob("*.json").each do |path| - FileUtils.ln path, HOMEBREW_CACHE/"api/#{path.basename}" + FileUtils.ln_s path, HOMEBREW_CACHE/"api/#{path.basename}" end begin