Skip to content

Commit

Permalink
Update Library/Homebrew/github_runner_matrix.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Bo Anderson <[email protected]>
  • Loading branch information
carlocab and Bo98 authored Sep 21, 2024
1 parent c34e4bc commit 22ccc44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Library/Homebrew/github_runner_matrix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 22ccc44

Please sign in to comment.