Merge pull request #16045 from Bo98/unbottled-perf

dev-cmd/unbottled: speed up dependent fetching
This commit is contained in:
Mike McQuaid 2023-09-27 18:09:02 +01:00 committed by GitHub
commit 5380fb7625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ module Homebrew
uses_hash = {}
all_formulae.each do |f|
deps = f.recursive_dependencies do |_, dep|
deps = Dependency.expand(f, cache_key: "unbottled") do |_, dep|
Dependency.prune if dep.optional?
end.map(&:to_formula)
deps_hash[f.name] = deps