os/mac/diagnostic: check for deprecated cask taps.
We keep seeing users popping up with these (#7449) so advise an untap.
This commit is contained in:
		
							parent
							
								
									29abc81f51
								
							
						
					
					
						commit
						2b224a66a5
					
				@ -345,6 +345,17 @@ module Homebrew
 | 
			
		||||
          directory on the same volume as your Cellar.
 | 
			
		||||
        EOS
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      def check_deprecated_caskroom_taps
 | 
			
		||||
        tapped_caskroom_taps = Tap.select { |t| t.user == "caskroom" }.map(&:repo)
 | 
			
		||||
        return if tapped_caskroom_taps.empty?
 | 
			
		||||
 | 
			
		||||
        <<~EOS
 | 
			
		||||
          You have the following deprecated, cask taps tapped:
 | 
			
		||||
            Caskroom/homebrew-#{tapped_caskroom_taps.join("\n  Caskroom/homebrew-")}
 | 
			
		||||
          Untap them with `brew untap`.
 | 
			
		||||
        EOS
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user