Skip to content

Commit

Permalink
Resolve runtime errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Sep 9, 2024
1 parent ea11cba commit 8f82dd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Library/Homebrew/formula_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ def fetch_dependency(dep)
fi.fetch
end

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

Expand Down Expand Up @@ -780,7 +780,7 @@ def install_dependency(dep, inherited_options)
fi = FormulaInstaller.new(
df,
options:,
link_keg: keg_had_linked_keg ? keg_was_linked : nil,
link_keg: keg_had_linked_keg && keg_was_linked,
installed_as_dependency: true,
installed_on_request: df.any_version_installed? && tab.present? && tab.installed_on_request,
force_bottle: false,
Expand Down Expand Up @@ -960,7 +960,7 @@ def build_argv
def build
FileUtils.rm_rf(formula.logs)

@start_time = T.let(Time.now, T.nilable(Time))
@start_time = Time.now

# 1. formulae can modify ENV, so we must ensure that each
# installation has a pristine ENV when it starts, forking now is
Expand Down

0 comments on commit 8f82dd4

Please sign in to comment.