Merge pull request #20115 from abitrolly/fix-test-linking

Replace hardlinks with symlinks for `brew tests`
This commit is contained in:
Mike McQuaid 2025-06-16 07:28:41 +00:00 committed by GitHub
commit b6f3b0439b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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