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 14, 2024
1 parent 455ba55 commit 3d90232
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 @@ -152,7 +152,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 = self.kept_formulae(global:, file:).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 3d90232

Please sign in to comment.