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
10b9443e
Commit
10b9443e
authored
Mar 02, 2016
by
Muhammed Yavuz Nuzumlali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Analyzer] Improve documentation for unlock scenario
Also set default `pods_to_unlock` value to empty array
parent
58cef569
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+1
-1
locking_dependency_analyzer.rb
...coapods/installer/analyzer/locking_dependency_analyzer.rb
+13
-1
No files found.
lib/cocoapods/installer/analyzer.rb
View file @
10b9443e
...
...
@@ -72,7 +72,7 @@ module Pod
store_existing_checkout_options
fetch_external_sources
if
allow_fetches
@locked_dependencies
=
generate_version_locking_dependencies
@locked_dependencies
=
generate_version_locking_dependencies
@result
.
specs_by_target
=
validate_platforms
(
resolve_dependencies
)
@result
.
specifications
=
generate_specifications
@result
.
targets
=
generate_targets
...
...
lib/cocoapods/installer/analyzer/locking_dependency_analyzer.rb
View file @
10b9443e
...
...
@@ -13,11 +13,23 @@ module Pod
# is in update mode, to prevent it from upgrading the Pods that weren't
# changed in the {Podfile}.
#
# @param [Lockfile] lockfile the lockfile containing dependency constraints
#
# @param [Array<String>] pods_to_update
# List of pod names which needs to be updated because installer is
# in update mode for these pods. Pods in this list and all their recursive dependencies
# will not be included in generated dependency graph
#
# @param [Array<String>] pods_to_unlock
# List of pod names whose version constraints will be removed from the generated dependency graph.
# Recursive dependencies of the pods won't be affected. This is currently used to force local pods
# to be evaluated again whenever checksum of the specification of the local pods changes.
#
# @return [Molinillo::DependencyGraph<Dependency>] the dependencies
# generated by the lockfile that prevent the resolver to update
# a Pod.
#
def
self
.
generate_version_locking_dependencies
(
lockfile
,
pods_to_update
,
pods_to_unlock
=
nil
)
def
self
.
generate_version_locking_dependencies
(
lockfile
,
pods_to_update
,
pods_to_unlock
=
[]
)
dependency_graph
=
Molinillo
::
DependencyGraph
.
new
if
lockfile
...
...
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