Skip to content

Commit

Permalink
fix regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Sep 9, 2024
1 parent 8f82dd4 commit a4b063e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Library/Homebrew/formula_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,9 @@ def check_conflicts

# Compute and collect the dependencies needed by the formula currently
# being installed.
sig { params(use_cache: T::Boolean).returns(T::Array[[Dependency, T::Hash[String, Options]]]) }
sig { params(use_cache: T::Boolean).returns(T::Array[[Dependency, Options]]) }
def compute_dependencies(use_cache: true)
@compute_dependencies = T.let(nil, T.nilable(T::Array[[Dependency, T::Hash[String, Options]]])) unless use_cache
@compute_dependencies = T.let(nil, T.nilable(T::Array[[Dependency, Options]])) unless use_cache
@compute_dependencies ||= begin
# Needs to be done before expand_dependencies
fetch_bottle_tab if pour_bottle?
Expand All @@ -560,7 +560,7 @@ def compute_dependencies(use_cache: true)
end
end

sig { params(deps: T::Array[[Dependency, T::Hash[String, Options]]]).returns(T::Array[Formula]) }
sig { params(deps: T::Array[[Dependency, Options]]).returns(T::Array[Formula]) }
def unbottled_dependencies(deps)
deps.map { |(dep, _options)| dep.to_formula }.reject do |dep_f|
next false unless dep_f.pour_bottle?
Expand Down Expand Up @@ -666,7 +666,7 @@ def expand_dependencies_for_formula(formula, inherited_options)
end
end

sig { returns(T::Array[[Dependency, T::Hash[String, Options]]]) }
sig { returns(T::Array[[Dependency, Options]]) }
def expand_dependencies
inherited_options = Hash.new { |hash, key| hash[key] = Options.new }

Expand Down Expand Up @@ -705,7 +705,7 @@ def inherited_options_for(dep)
inherited_options
end

sig { params(deps: T::Array[[Dependency, T::Hash[String, Options]]]).void }
sig { params(deps: T::Array[[Dependency, Options]]).void }
def install_dependencies(deps)
if deps.empty? && only_deps?
puts "All dependencies for #{formula.full_name} are satisfied."
Expand Down Expand Up @@ -744,7 +744,7 @@ def fetch_dependency(dep)
fi.fetch
end

sig { params(dep: Dependency, inherited_options: T.any(Options, T::Hash[String, Options])).void }
sig { params(dep: Dependency, inherited_options: Options).void }
def install_dependency(dep, inherited_options)
df = dep.to_formula

Expand Down

0 comments on commit a4b063e

Please sign in to comment.