Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
b8ba083e
Commit
b8ba083e
authored
4 years ago
by
Bo Anderson
Browse files
Options
Downloads
Patches
Plain Diff
dependencies: fix recursive_includes not handling deps of test deps
parent
a2939be0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/dependencies.rb
+5
-10
5 additions, 10 deletions
Library/Homebrew/dependencies.rb
with
5 additions
and
10 deletions
Library/Homebrew/dependencies.rb
+
5
−
10
View file @
b8ba083e
...
...
@@ -100,16 +100,11 @@ module Homebrew
klass
.
prune
if
ignores
.
include?
(
"recommended?"
)
||
dependent
.
build
.
without?
(
dep
)
elsif
dep
.
optional?
klass
.
prune
if
!
includes
.
include?
(
"optional?"
)
&&
!
dependent
.
build
.
with?
(
dep
)
elsif
dep
.
test?
if
includes
.
include?
(
"test?"
)
Dependency
.
keep_but_prune_recursive_deps
if
type
==
:dependencies
elsif
dep
.
build?
klass
.
prune
unless
includes
.
include?
(
"build?"
)
else
klass
.
prune
end
elsif
dep
.
build?
klass
.
prune
unless
includes
.
include?
(
"build?"
)
elsif
dep
.
build?
||
dep
.
test?
keep
=
false
keep
||=
dep
.
test?
&&
includes
.
include?
(
"test?"
)
&&
dependent
==
formula
keep
||=
dep
.
build?
&&
includes
.
include?
(
"build?"
)
klass
.
prune
unless
keep
end
# If a tap isn't installed, we can't find the dependencies of one of
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment