-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Enhancement - ability to clean user-level pod cache #42
Comments
Here's the basis for the fix: CocoaPods/CocoaPods#9260 (comment) |
Wouldn't it make more sense to just wipe the entire |
I just wasted a fair bit of time yesterday with cocoapods cache corruption in ~/Library/Cache/CocoaPods (delete possible via I think purging ~/.cocoapods and Deleting these will result in a great deal of network traffic to rebuild state so I would have them default to off in the "auto" scheme and only available via toggles or interactive response, personally, but open to suggestion on that. |
A PR is more than welcome, thanks. I believe the "auto" mode should induce the cleanest state, and the toggles to make it less clean. But I'm flexible on that one 👍🏼 |
I will defer to your taste in your module (and I am sympathetic to that anyway - clean should be clean :-) ). Okay I'll post up a PR for a truly clean cocoapods situation. If there is a convenient place to mention to the user that it implies a large network transfer cost in the future to rebuild the cache (like, in docs or if there is already CLI messaging) I'll do that so it's not a shock, or at least not an unknown one :) |
Sounds like a great idea @mikehardy . Happy to review that PR. |
I am still planning on doing this, just collecting ideas here from user reports of what worked for them as they fixed pod errors, here's another possibly-needed command: |
Out of the 3 ideas, I researched and learned that if we purge So I posted a PR that just did |
Thanks @mikehardy - PR approved with one comment. |
We just ran into an issue on react-native-firebase that was resolved by deleting the local cocoapods cache in the user's directory like so:
rm -fr ~/.cocoapods/repos/trunk
invertase/react-native-firebase#3305 (comment)
Might be nice to have an option to '--wipe-pods-user-cache' or similar?
The text was updated successfully, but these errors were encountered: