audit: reject versions starting with HEAD
Many parts of Homebrew assume that a version string beginning with "HEAD" is, in fact, a head build. A stable version that begins with "HEAD" violates this assumption and causes problems, as it's treated as a head build in some places and as a stable build in others.
This commit is contained in:
parent
6d42e2a527
commit
8385f179df
@ -755,6 +755,9 @@ class FormulaAuditor
|
||||
if version.to_s !~ /\d/
|
||||
problem "#{name}: version (#{version}) is set to a string without a digit"
|
||||
end
|
||||
if version.to_s.start_with?("HEAD")
|
||||
problem "#{name}: non-HEAD version name (#{version}) should not begin with HEAD"
|
||||
end
|
||||
end
|
||||
|
||||
if formula.stable && formula.devel
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user