Merge pull request #7980 from dtrodrigues/versioned-head-msg

update audit error message for versioned formulae with head spec
This commit is contained in:
Jonathan Chang 2020-07-12 12:20:14 +10:00 committed by GitHub
commit bc4a108045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -663,7 +663,7 @@ module Homebrew
problem "Formulae in homebrew/core should not have a `devel` spec" if formula.devel
if formula.head && @versioned_formula
head_spec_message = "Formulae should not have a `HEAD` spec"
head_spec_message = "Versioned formulae should not have a `HEAD` spec"
problem head_spec_message unless VERSIONED_HEAD_SPEC_ALLOWLIST.include?(formula.name)
end