From 79b1d4178e25d674cc7e831a9888769dbd673eb3 Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Sun, 2 Dec 2018 18:27:03 -0800 Subject: [PATCH] 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. --- Library/Homebrew/dev-cmd/bottle.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index 06231d1881..d185453ed7 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -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