Skip to content

Commit

Permalink
Keep implicit taps
Browse files Browse the repository at this point in the history
  • Loading branch information
tt committed Nov 11, 2024
1 parent d7a23b4 commit 8824738
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bundle/commands/cleanup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ def recursive_dependencies(current_formulae, formulae_names, top_level: true)

def taps_to_untap(global: false, file: nil)
@dsl ||= Brewfile.read(global:, file:)
kept_formulae = @dsl.entries.select { |e| e.type == :brew }.map(&:name).map(&Formulary.method(:factory))
kept_taps = @dsl.entries.select { |e| e.type == :tap }.map(&:name)
kept_taps += kept_formulae.filter_map(&:tap).map(&:name)
current_taps = Bundle::TapDumper.tap_names
current_taps - kept_taps - IGNORED_TAPS
end
Expand Down

0 comments on commit 8824738

Please sign in to comment.