From 8a14d5cf4ec193c9d92d4460c753b9f770026462 Mon Sep 17 00:00:00 2001 From: Muneeb Ahmed <32603485+muneebmahmed@users.noreply.github.com> Date: Thu, 17 Aug 2023 04:16:02 -0700 Subject: [PATCH] Fix cask dependency discovery --- Library/Homebrew/utils/topological_hash.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/utils/topological_hash.rb b/Library/Homebrew/utils/topological_hash.rb index 726eab599e..5879194559 100644 --- a/Library/Homebrew/utils/topological_hash.rb +++ b/Library/Homebrew/utils/topological_hash.rb @@ -30,6 +30,7 @@ module Utils else formula_deps = cask_or_formula.deps .reject(&:build?) + .reject(&:test?) .map(&:to_formula) cask_deps = cask_or_formula.requirements .map(&:cask)