Make more warnings quiet with environment hints disabled.
Combined with https://github.com/Homebrew/homebrew-test-bot/pull/963 this should make `brew test-bot` output a bit quieter and less annoying.
This commit is contained in:
parent
ef4731d67a
commit
1d4a24d226
@ -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?
|
||||||
|
|||||||
@ -256,10 +256,12 @@ module Homebrew
|
|||||||
verbose: false
|
verbose: false
|
||||||
)
|
)
|
||||||
if Homebrew::EnvConfig.no_installed_dependents_check?
|
if Homebrew::EnvConfig.no_installed_dependents_check?
|
||||||
|
unless Homebrew::EnvConfig.no_env_hints?
|
||||||
opoo <<~EOS
|
opoo <<~EOS
|
||||||
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK is set: not checking for outdated
|
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK is set: not checking for outdated
|
||||||
dependents or dependents with broken linkage!
|
dependents or dependents with broken linkage!
|
||||||
EOS
|
EOS
|
||||||
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user