Skip to content
Snippets Groups Projects
Commit 3c652985 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

build: permit weak imports in Go reverse deps.

Go makes extensive use of weak imports so we need to allow them when
building Go-using software.

Closes https://github.com/Homebrew/homebrew-core/issues/4047.
parent bb4d168c
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,11 @@ class Build
ENV.activate_extensions!
# Go makes extensive use of weak imports.
if formula_deps.any? { |f| f.name == "go" }
ENV.permit_weak_imports
end
if superenv?
ENV.keg_only_deps = keg_only_deps
ENV.deps = formula_deps
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment