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()
This commit is contained in:
xxyzz 2022-03-30 20:25:26 +08:00
parent db723f5dd7
commit 193d6d3ff2
No known key found for this signature in database
GPG Key ID: F796163E6DCFEE9D

View File

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