From 193d6d3ff2942aac5519a2632dc0ca9cfd2b669b Mon Sep 17 00:00:00 2001 From: xxyzz Date: Wed, 30 Mar 2022 20:25:26 +0800 Subject: [PATCH] Skip build dependencies to avoid downloading bottles Dependency.to_formula() in the following line will cause a CoreTapFormulaUnavailableError then download all dependency bottles in FormulaInstaller.verfi_deps_exist() --- Library/Homebrew/dependency.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/dependency.rb b/Library/Homebrew/dependency.rb index aa5375112a..2b3f9b2013 100644 --- a/Library/Homebrew/dependency.rb +++ b/Library/Homebrew/dependency.rb @@ -112,6 +112,8 @@ class Dependency deps.each do |dep| next if dependent.name == dep.name + # avoid downloading build dependency bottles + next if dep.build? && dependent.pour_bottle? && Homebrew::EnvConfig.install_from_api? case action(dependent, dep, ignore_missing: ignore_missing, &block) when :prune