From 22ccc4445fd4e7a05cede751bb2fa951e449e301 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Sat, 21 Sep 2024 22:21:36 +0800 Subject: [PATCH] Update Library/Homebrew/github_runner_matrix.rb Co-authored-by: Bo Anderson --- Library/Homebrew/github_runner_matrix.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/github_runner_matrix.rb b/Library/Homebrew/github_runner_matrix.rb index 17f5355da041fe..e99d5fff7f1301 100644 --- a/Library/Homebrew/github_runner_matrix.rb +++ b/Library/Homebrew/github_runner_matrix.rb @@ -138,12 +138,12 @@ def deploy_new_x86_64_runner? return true if @testing_formulae.any? { |f| f.formula.class.pour_bottle_only_if == :clt_installed } Formula.all.any? do |formula| + next false if formula.class.pour_bottle_only_if != :clt_installed + non_test_dependencies = Dependency.expand(formula, cache_key: "determine-test-runners") do |_, dependency| Dependency.prune if dependency.test? end - next false if non_test_dependencies.none? { |dep| @testing_formulae.map(&:name).include?(dep.name) } - - formula.class.pour_bottle_only_if == :clt_installed + non_test_dependencies.any? { |dep| @testing_formulae.map(&:name).include?(dep.name) } end end