Ignore any version of Go, when it is a dependency of a bottle

This commit is contained in:
Ilya Dmitrichenko 2018-06-15 11:36:41 -07:00
parent 32fa773cf8
commit 22d88821c3
No known key found for this signature in database
GPG Key ID: E7889175A6C0CEB9

View File

@ -284,8 +284,8 @@ module Homebrew
end
ignores = []
if f.deps.any? { |dep| dep.name == "go" }
ignores << %r{#{Regexp.escape(HOMEBREW_CELLAR)}/go/[\d\.]+/libexec}
if f.deps.any? { |dep| dep.name =~ /^go(@[\d\.]+)?$/ }
ignores << %r{#{Regexp.escape(HOMEBREW_CELLAR)}/go(@[\d\.]+)?/[\d\.]+/libexec}
end
relocatable = true