From a333014c55c1edc2555cd2dfbd8dc07463cc9b76 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 12 May 2020 10:43:54 +0100 Subject: [PATCH] formula_installer: ignore dependencies when fetching. Whenever you are fetching a dependency you only care about fetching that specific dependency and not all the dependencies of that dependency. Unlike installing, dependencies can be fetched in any order and have no "chains" between them. --- Library/Homebrew/formula_installer.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 3e281a7588..d51ad3780b 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -572,6 +572,10 @@ class FormulaInstaller fi.verbose = verbose? fi.quiet = quiet? fi.debug = debug? + # When fetching we don't need to recurse the dependency tree as it's already + # been done for us in `compute_dependencies` and there's no requirement to + # fetch in a particular order. + fi.ignore_deps = true fi.fetch end