Skip to content

Commit

Permalink
Merge pull request #6471 from scpeters/not_always_install_test_deps
Browse files Browse the repository at this point in the history
formula_installer: don't always install test deps.
  • Loading branch information
MikeMcQuaid committed Sep 19, 2019
2 parents 86e9af2 + 1364738 commit 1e725f4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Library/Homebrew/formula_installer.rb
Expand Up @@ -483,8 +483,12 @@ def expand_dependencies(deps)

if dep.prune_from_option?(build)
Dependency.prune
elsif include_test? && dep.test? && !dep.installed?
Dependency.keep_but_prune_recursive_deps
elsif dep.test?
if !include_test?
Dependency.prune
elsif !dep.installed?
Dependency.keep_but_prune_recursive_deps
end
elsif dep.build? && install_bottle_for?(dependent, build)
Dependency.prune
elsif dep.prune_if_build_and_not_dependent?(dependent)
Expand Down

0 comments on commit 1e725f4

Please sign in to comment.