Merge pull request #15820 from MikeMcQuaid/more_quiet_env_hints

Make more warnings quiet with environment hints disabled.
This commit is contained in:
Mike McQuaid 2023-08-04 09:49:45 +01:00 committed by GitHub
commit 5c718b5dfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -18,6 +18,8 @@ module FormulaCellarChecks
def problem_if_output(output); end def problem_if_output(output); end
def check_env_path(bin) def check_env_path(bin)
return if Homebrew::EnvConfig.no_env_hints?
# warn the user if stuff was installed outside of their PATH # warn the user if stuff was installed outside of their PATH
return unless bin.directory? return unless bin.directory?
return if bin.children.empty? return if bin.children.empty?

View File

@ -256,10 +256,12 @@ module Homebrew
verbose: false verbose: false
) )
if Homebrew::EnvConfig.no_installed_dependents_check? if Homebrew::EnvConfig.no_installed_dependents_check?
opoo <<~EOS unless Homebrew::EnvConfig.no_env_hints?
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK is set: not checking for outdated opoo <<~EOS
dependents or dependents with broken linkage! HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK is set: not checking for outdated
EOS dependents or dependents with broken linkage!
EOS
end
return return
end end