diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index c013e1fbb1..e356c7013f 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -760,6 +760,8 @@ class FormulaInstaller audit_installed if Homebrew::EnvConfig.developer? + return if !installed_on_request? || installed_as_dependency? + caveats = Caveats.new(formula) return if caveats.empty?