Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Explicitly specify spec repos to load from and the order #85

Closed
alloy opened this Issue · 3 comments

4 participants

@alloy
Owner

From @mmobarak:

Another idea for allowing overrides of podspecs is to allow the inclusion of an ordered repo list at the start of the Podfile, in the style of the Gemfile 'source' directive. This would then determine the order in which the pod repos were searched, and maybe eventually download remote repos to cache the podspecs locally:

repo  'mycompanypodspecs'                      # the mycompanypodspecs repo in ~/.cocoapods, 
                                               # installed/managed with 'pod repo', is preferred

repo  'https://github.com/CocoaPods/Specs.git' # the generally authoritative podspec repo 
                                               # downloaded as necessary to ~/.cocoapods 
                                               # subject to management with 'pod repo'
@atomkirk

just search all repos and use the one with the highest version

@mruegenberg

A workaround: The search for the repo to use seems to be alphabetical. You can implicitly specify the order by choosing the repo name in pod repo add.

I would also prefer that it just searches all repos and uses the highest version.

@alloy
Owner

@atomkirk Agreed.

@fabiopelosin fabiopelosin was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.