Skip to content

Commit

Permalink
Clear cache for Tap#formula_reverse_renames.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Mar 1, 2024
1 parent f1eea64 commit 0113376
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Library/Homebrew/tap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def clear_cache
@formula_names = nil
@formula_files = nil
@formula_files_by_name = nil
@formula_reverse_renames = nil
@cask_files = nil
@cask_files_by_name = nil
@alias_dir = nil
Expand Down Expand Up @@ -801,7 +802,9 @@ def formula_renames
end
end

# Hash with tap formula old names. Reverse of {#formula_renames}.
# Mapping from new to old formula names. Reverse of {#formula_renames}.
#
# @private
sig { returns(T::Hash[String, T::Array[String]]) }
def formula_reverse_renames
@formula_reverse_renames ||= formula_renames.each_with_object({}) do |(old_name, new_name), hash|
Expand Down

0 comments on commit 0113376

Please sign in to comment.