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
6b046899
Commit
6b046899
authored
Nov 18, 2014
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store existing checkout options but ignore :head pods
parent
e7ee802b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
installer.rb
lib/cocoapods/installer.rb
+3
-2
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+10
-0
No files found.
lib/cocoapods/installer.rb
View file @
6b046899
...
@@ -465,8 +465,9 @@ module Pod
...
@@ -465,8 +465,9 @@ module Pod
# @return [void]
# @return [void]
#
#
def
write_lockfiles
def
write_lockfiles
# checkout_options = sandbox.checkout_options
external_source_pods
=
podfile
.
dependencies
.
select
(
&
:external_source
).
map
(
&
:root_name
).
uniq
@lockfile
=
Lockfile
.
generate
(
podfile
,
analysis_result
.
specifications
,
sandbox
.
checkout_sources
)
checkout_options
=
sandbox
.
checkout_sources
.
select
{
|
root_name
,
_
|
external_source_pods
.
include?
root_name
}
@lockfile
=
Lockfile
.
generate
(
podfile
,
analysis_result
.
specifications
,
checkout_options
)
UI
.
message
"- Writing Lockfile in
#{
UI
.
path
config
.
lockfile_path
}
"
do
UI
.
message
"- Writing Lockfile in
#{
UI
.
path
config
.
lockfile_path
}
"
do
@lockfile
.
write_to_disk
(
config
.
lockfile_path
)
@lockfile
.
write_to_disk
(
config
.
lockfile_path
)
...
...
lib/cocoapods/installer/analyzer.rb
View file @
6b046899
...
@@ -53,6 +53,7 @@ module Pod
...
@@ -53,6 +53,7 @@ module Pod
@result
.
podfile_state
=
generate_podfile_state
@result
.
podfile_state
=
generate_podfile_state
@locked_dependencies
=
generate_version_locking_dependencies
@locked_dependencies
=
generate_version_locking_dependencies
store_existing_checkout_options
fetch_external_sources
if
allow_fetches
fetch_external_sources
if
allow_fetches
@result
.
specs_by_target
=
resolve_dependencies
@result
.
specs_by_target
=
resolve_dependencies
@result
.
specifications
=
generate_specifications
@result
.
specifications
=
generate_specifications
...
@@ -335,6 +336,15 @@ module Pod
...
@@ -335,6 +336,15 @@ module Pod
end
end
end
end
def
store_existing_checkout_options
podfile
.
dependencies
.
select
(
&
:external_source
).
each
do
|
dep
|
if
checkout_options
=
lockfile
&&
lockfile
.
checkout_options_for_pod_named
(
dep
.
root_name
)
sandbox
.
store_checkout_source
(
dep
.
root_name
,
checkout_options
)
end
end
end
# Converts the Podfile in a list of specifications grouped by target.
# Converts the Podfile in a list of specifications grouped by target.
#
#
# @note As some dependencies might have external sources the resolver
# @note As some dependencies might have external sources the resolver
...
...
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