Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
891c3fb8
Commit
891c3fb8
authored
Mar 28, 2014
by
Seivan Heidari
Committed by
Fabio Pelosin
Aug 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Resolver] Indicate the dependant of a missing dependency
parent
76a369ae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
resolver.rb
lib/cocoapods/resolver.rb
+10
-4
No files found.
lib/cocoapods/resolver.rb
View file @
891c3fb8
...
@@ -148,7 +148,7 @@ module Pod
...
@@ -148,7 +148,7 @@ module Pod
dependency
=
locked_dep
if
locked_dep
dependency
=
locked_dep
if
locked_dep
UI
.
message
(
"-
#{
dependency
}
"
,
''
,
2
)
do
UI
.
message
(
"-
#{
dependency
}
"
,
''
,
2
)
do
set
=
find_cached_set
(
dependency
)
set
=
find_cached_set
(
dependency
,
dependent_spec
)
set
.
required_by
(
dependency
,
dependent_spec
.
to_s
)
set
.
required_by
(
dependency
,
dependent_spec
.
to_s
)
unless
@loaded_specs
.
include?
(
dependency
.
name
)
unless
@loaded_specs
.
include?
(
dependency
.
name
)
...
@@ -174,7 +174,13 @@ module Pod
...
@@ -174,7 +174,13 @@ module Pod
# @param [Dependency] dependency
# @param [Dependency] dependency
# The dependency for which the set is needed.
# The dependency for which the set is needed.
#
#
def
find_cached_set
(
dependency
)
# @param [#to_s] dependent_spec
# the specification whose dependencies are being resolved. Used
# only for UI purposes.
#
# @return [Set] the cached set for a given dependency.
#
def
find_cached_set
(
dependency
,
dependent_spec
)
name
=
dependency
.
root_name
name
=
dependency
.
root_name
unless
cached_sets
[
name
]
unless
cached_sets
[
name
]
if
dependency
.
external_source
if
dependency
.
external_source
...
@@ -189,8 +195,8 @@ module Pod
...
@@ -189,8 +195,8 @@ module Pod
end
end
cached_sets
[
name
]
=
set
cached_sets
[
name
]
=
set
unless
set
unless
set
raise
Informative
,
"Unable to find a specification "
\
raise
Informative
,
"Unable to find a specification
for
"
\
"
for `
#{
dependency
}
`
."
"
`
#{
dependency
}
` dependent by
#{
dependent_spec
}
."
end
end
end
end
cached_sets
[
name
]
cached_sets
[
name
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment