Skip to content

Commit

Permalink
Actually clear all tap caches.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Feb 23, 2024
1 parent f9724b4 commit a13804f
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions Library/Homebrew/tap.rb
Expand Up @@ -118,29 +118,40 @@ def initialize(user, repo)
def clear_cache
@remote = nil
@repo_var = nil
remove_instance_variable(:@private) if instance_variable_defined?(:@private)

@formula_dir = nil
@cask_dir = nil
@command_dir = nil
@formula_files = nil
@formula_files_by_name = nil
@formula_names = nil
@prefix_to_versioned_formulae_names = nil
@formula_renames = nil
@formula_reverse_renames = nil

@cask_dir = nil
@cask_files = nil
@cask_files_by_name = nil
@cask_tokens = nil
@cask_renames = nil
@cask_reverse_renames = nil

@command_dir = nil
@command_files = nil

@alias_dir = nil
@alias_files = nil
@aliases = nil
@alias_table = nil
@alias_reverse_table = nil
@command_files = nil
@formula_renames = nil

@tap_migrations = nil

@audit_exceptions = nil
@style_exceptions = nil
@pypi_formula_mappings = nil

@config = nil
@spell_checker = nil
remove_instance_variable(:@private) if instance_variable_defined?(:@private)
end

sig { void }
Expand Down

0 comments on commit a13804f

Please sign in to comment.