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
ecfa06b7
Commit
ecfa06b7
authored
Jan 04, 2016
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Analyzer] Fetch :podspec dependencies when the spec is missing
parent
2edc117a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+5
-2
No files found.
lib/cocoapods/installer/analyzer.rb
View file @
ecfa06b7
...
...
@@ -443,7 +443,7 @@ module Pod
unless
dependencies_to_fetch
.
empty?
UI
.
section
'Fetching external sources'
do
dependencies_to_fetch
.
sort
.
each
do
|
dependency
|
fetch_external_source
(
dependency
,
!
pods_to_fetch
.
include?
(
dependency
.
name
))
fetch_external_source
(
dependency
,
!
pods_to_fetch
.
include?
(
dependency
.
root_
name
))
end
end
end
...
...
@@ -481,7 +481,7 @@ module Pod
deps_to_fetch
=
deps_with_external_source
.
select
{
|
dep
|
pods_to_fetch
.
include?
(
dep
.
name
)
}
deps_to_fetch_if_needed
=
deps_with_external_source
.
select
{
|
dep
|
result
.
podfile_state
.
unchanged
.
include?
(
dep
.
name
)
}
deps_to_fetch
+=
deps_to_fetch_if_needed
.
select
do
|
dep
|
sandbox
.
specification
(
dep
.
name
).
nil?
||
sandbox
.
specification
(
dep
.
root_
name
).
nil?
||
!
dep
.
external_source
[
:path
].
nil?
||
!
sandbox
.
pod_dir
(
dep
.
root_name
).
directory?
||
checkout_requires_update?
(
dep
)
...
...
@@ -506,6 +506,9 @@ module Pod
elsif
update_mode
==
:all
pods_to_fetch
+=
result
.
podfile_state
.
unchanged
+
result
.
podfile_state
.
deleted
end
pods_to_fetch
+=
podfile
.
dependencies
.
select
{
|
dep
|
Hash
(
dep
.
external_source
).
key?
(
:podspec
)
&&
sandbox
.
specification_path
(
dep
.
root_name
).
nil?
}.
map
(
&
:root_name
)
pods_to_fetch
end
end
...
...
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