Prioritize TapDependency in parse_string_spec
test-bot expects the dependencies returned from SoftwareSpec#deps to satisfy is_a?(TapDependency) if they come from a tap which might need to be tapped.
This commit is contained in:
parent
a5e1f698d5
commit
ac16822a16
@ -89,12 +89,12 @@ class DependencyCollector
|
|||||||
end
|
end
|
||||||
|
|
||||||
def parse_string_spec(spec, tags)
|
def parse_string_spec(spec, tags)
|
||||||
if tags.empty?
|
if HOMEBREW_TAP_FORMULA_REGEX === spec
|
||||||
|
TapDependency.new(spec, tags)
|
||||||
|
elsif tags.empty?
|
||||||
Dependency.new(spec, tags)
|
Dependency.new(spec, tags)
|
||||||
elsif (tag = tags.first) && LANGUAGE_MODULES.include?(tag)
|
elsif (tag = tags.first) && LANGUAGE_MODULES.include?(tag)
|
||||||
LanguageModuleDependency.new(tag, spec, tags[1])
|
LanguageModuleDependency.new(tag, spec, tags[1])
|
||||||
elsif HOMEBREW_TAP_FORMULA_REGEX === spec
|
|
||||||
TapDependency.new(spec, tags)
|
|
||||||
else
|
else
|
||||||
Dependency.new(spec, tags)
|
Dependency.new(spec, tags)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user