audit: more information on build deps audit
Closes Homebrew/homebrew#36892. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
a4f675a0fb
commit
f204e2e608
@ -168,7 +168,12 @@ class FormulaAuditor
|
|||||||
case dep.name
|
case dep.name
|
||||||
when *BUILD_TIME_DEPS
|
when *BUILD_TIME_DEPS
|
||||||
next if dep.build? or dep.run?
|
next if dep.build? or dep.run?
|
||||||
problem %{#{dep} dependency should be "depends_on '#{dep}' => :build"}
|
problem <<-EOS.undent
|
||||||
|
#{dep} dependency should be
|
||||||
|
depends_on "#{dep}" => :build
|
||||||
|
Or if it is indeed a runtime denpendency
|
||||||
|
depends_on "#{dep}" => :run
|
||||||
|
EOS
|
||||||
when "git", "ruby", "mercurial"
|
when "git", "ruby", "mercurial"
|
||||||
problem "Don't use #{dep} as a dependency. We allow non-Homebrew #{dep} installations."
|
problem "Don't use #{dep} as a dependency. We allow non-Homebrew #{dep} installations."
|
||||||
when 'gfortran'
|
when 'gfortran'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user