Merge pull request #5368 from sjackman/bottle-ignore-source

bottle: Ignore matches to source code
This commit is contained in:
Shaun Jackman 2018-12-03 09:39:09 -08:00 committed by GitHub
commit c89f6c8f8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -342,7 +342,9 @@ module Homebrew
prefix_check = prefix
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|
dep.name =~ Version.formula_optionally_versioned_regex(:go)
end