Skip to content

Commit

Permalink
Skip build dependencies to avoid downloading bottles
Browse files Browse the repository at this point in the history
Dependency.to_formula() in the following line will cause a
CoreTapFormulaUnavailableError then download all dependency bottles in FormulaInstaller.verfi_deps_exist()
  • Loading branch information
xxyzz committed Mar 30, 2022
1 parent db723f5 commit 193d6d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/dependency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def expand(dependent, deps = dependent.deps, cache_key: nil, ignore_missing: fal

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
Expand Down

0 comments on commit 193d6d3

Please sign in to comment.