diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index e12449f359..a5b8be2ccf 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -670,6 +670,11 @@ module Homebrew end next if status.blank? + # these will result in uncommitted gems. + if path == HOMEBREW_REPOSITORY + next if ENV["HOMEBREW_SORBET"] || ENV["HOMEBREW_PATCHELF_RB"] + end + message ||= "" message += "\n" unless message.empty? message += <<~EOS