dev-cmd/unbottled: speed up dependent fetching

This commit is contained in:
Bo Anderson 2023-09-27 17:45:29 +01:00
parent b4274c8e00
commit 835ebedd18
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

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