Skip to content
Snippets Groups Projects
Commit 40e64263 authored by Xu Cheng's avatar Xu Cheng
Browse files

audit: give better suggestion on git/hg dependency


Closes Homebrew/homebrew#36959.

Signed-off-by: default avatarXu Cheng <xucheng@me.com>
parent 6dd51ff3
No related branches found
No related tags found
No related merge requests found
......@@ -174,8 +174,12 @@ class FormulaAuditor
Or if it is indeed a runtime denpendency
depends_on "#{dep}" => :run
EOS
when "git", "ruby", "mercurial"
problem "Don't use #{dep} as a dependency. We allow non-Homebrew #{dep} installations."
when "git"
problem "Use `depends_on :git` instead of `depends_on 'git'`"
when "mercurial"
problem "Use `depends_on :hg` instead of `depends_on 'mercurial'`"
when "ruby"
problem "Don't use ruby as a dependency. We allow non-Homebrew ruby installations."
when 'gfortran'
problem "Use `depends_on :fortran` instead of `depends_on 'gfortran'`"
when 'open-mpi', 'mpich2'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment