CocoaPods / cocoapods-downloader

A small library that provides downloaders for various source types (HTTP/SVN/Git/Mercurial)
MIT License
84 stars 72 forks source link

Support for path downloading #2

Closed xslim closed 11 years ago

xslim commented 11 years ago

I'm building a private library, and I use cocoapods to to test it & distribute it. I wand in my pod spec to support something like

s.source       = { :path => "./MyLib/" }

So when I will do pod spec lint it will take sources from the supplied path

orta commented 11 years ago

This exists already: New (unreleased docs)

fabiopelosin commented 11 years ago

I think that @xslim is looking for the:

$ pod spec lint --local

command. This will be renamed to pod lib lint for discoverability.

orta commented 11 years ago

:+1:

xslim commented 11 years ago

I still think that Podspec for a private libs should be able to use source from local path...

fabiopelosin commented 11 years ago

We think that Pods should use source control and adding this kind of support (it used to work) would complicate the implementation with little gain. For development there is the :path option in the Podfile and the upcoming CocoaPods/CocoaPods#1010 which if there is enough demand for it could use a global config file as well (like bundler does) which would use the path option for all the projects in the machine of the user while storing the last SHA in the Lockfile every time pod install is called.