bottle: Ignore matches to source code

Ignore matches to source code, which is not required at run time.
These matches may be caused by debugging symbols.
This commit is contained in:
Shaun Jackman 2018-12-02 18:27:03 -08:00
parent 704e8570e5
commit 79b1d4178e

View File

@ -342,7 +342,9 @@ module Homebrew
prefix_check = prefix prefix_check = prefix
end end
ignores = [] # Ignore matches to source code, which is not required at run time.
# These matches may be caused by debugging symbols.
ignores = [%r{/include/|\.(c|cc|cpp|h|hpp)$}]
any_go_deps = f.deps.any? do |dep| any_go_deps = f.deps.any? do |dep|
dep.name =~ Version.formula_optionally_versioned_regex(:go) dep.name =~ Version.formula_optionally_versioned_regex(:go)
end end