Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to selectively disable update of particular pods on 'pod insall' #979

Closed
delebedev opened this issue Apr 16, 2013 · 2 comments

Comments

@delebedev
Copy link
Contributor

Sometimes, the pod spec is not actual or the code has issues and the developer has two options:

  1. Fork the lib, fix code issues and change source (rather slow)
  2. Hot-fix the code in the Pods directory (dangerous but fast)

The problem is when 'pod install' is exectued the changes made in option 2 are discarded. I propose to add an option to Podfile to skip update of pod source, f.e.

pod 'MyAwesome', skip_update:true

@fabiopelosin
Copy link
Member

That would create confusion among users, especially in distributed teams. You can just copy the folder of the Pod to another location and use the :path option to preserve the changes. Which is more clear and just requires and additional minor step.

@supermarin
Copy link

+1 , @garnett if you change the pod source, probably you want to keep it locally in your project.

That way you can also share it with others with no fear.
Although, the better approach is to fork & use :git => path-to-your-fork, submit a pull request to the lib maintainer, share some love, and that stuff 😄

Edit: to explain why, if your changes are domain-related, you can always update your fork from upstream.

jzapater pushed a commit to jzapater/CocoaPods that referenced this issue Sep 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants