Replace hardlinks with symlinks for brew tests

Fixes https://github.com/Homebrew/brew/issues/20114
This commit is contained in:
Anatoli Babenia 2025-06-15 14:05:25 +03:00
parent 6301c2d31f
commit d2b6531f01

View File

@ -252,7 +252,7 @@ RSpec.configure do |config|
# Link original API cache files to test cache directory. # Link original API cache files to test cache directory.
Pathname("#{ENV.fetch("HOMEBREW_CACHE")}/api").glob("*.json").each do |path| 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 end
begin begin