-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Issues Cloning Spec repo - GitHub taking a very long time to download changes to the Specs Repo #4989
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
Comments
Tried again, new error:
Very weird... |
I got same issue, too. |
Same. |
+1, same issue |
+1, been messing around with this for awhile. I doubled the buffer, didn't work. Uninstalled and reinstalled pods, didn't work. Tried to clone manually, no cigar. It actually seems to be getting "something" but fails. Using verbose didn't say much, just said it had issues accessing it. I tried accessing my other repos and it seemed to be OK, but it was definitely slower than normal. |
+1 I got same issue, too. I tried cloning master repos directly (by |
+1 |
2 similar comments
+1 |
+1 |
+1. No success after increasing buffer / reinstall / manual clone |
Temporary workaround which might work: https://github.com/CocoaPods/Specs/archive/master.zip haven't tested though
|
https://github.com/CocoaPods/Specs/archive/master.zip would be the correct link, I guess? |
Same error here. What should we do with the file at https://github.com/CocoaPods/Specs/archive/master.zip ? |
My bad, the wget link is correct. Just edited my first link. |
Not sure what to do with the file yet. Trying to see if we can manually run the commands to have pod setup work. |
Yeah, it merely downloads the repo's contents. The .git/ directory is missing, so it's not recognized as a git repo. |
yes.. same here.. It always tries to clone the master repo. Even when I run it with |
Did anyone try this with 1.0.0 beta 4? |
@MarkMolina I tried, but same result. |
Try to cd into |
+1 |
Thx, but I removed my master spec repo before I realized something was up with the Github repo ^.^ |
Got a temp workaround! Tested with my app and everything is working. This is really only needed if you deleted the master repo. If the master folder is still in your
And you should be good to go! So in short, here is the basic list of commands I used:
|
Is this a Cocoapods or a wider GitHub issue? |
@aceontech Pretty sure it is a GitHub issue, but my other repos are working fine so perhaps only certain repos on certain servers (on their backend) are affected. |
I was just able to do a successful AlexMacBookPro:repos alex$ pod setup --verbose
Setting up CocoaPods master repo
Creating shallow clone of spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --depth=1
Cloning into 'master'...
Checking out files: 100% (74393/74393), done.
$ /usr/bin/git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'. |
Github is very very slow: ~ 40-50KB/s |
I was able to do |
This is a GitHub issue rather than a cocoapods issue -- you're best off reporting it to their support rather than us, since there's nothing we can do about it. |
And github refers to Cocoapods... Great... |
Hey there, I am the infrastructure manager for Travis CI and my team is responsible for our OSX build images, which includes CocoaPods and the speed of the We'd definitely love to hear more about we how could:
|
Stupid Question. Are similar load problems seen in repos like Homebrew(which maintains similar kinds of information) as CocoaPods? |
I'd like to put in a plug for checking your |
@solarce Aside from using Travis CI caching (which is awesome BTW) and the ideas above (Which are a positive direction and great work on the quick response from @alloy and the team ). What I've been using as a solution for my company is a plugin I wrote which attempts to use the Check it out here: It looks at the With this plugin we've experienced a 85% decrease in CocoaPods install times (Down from around 500 seconds to 85). I would love to know your thoughts on this and to see if it works for you. |
@ZevEisenberg I've never been a fan of that approach and always felt it could be something that should be solved via a CocoaPods's plugin (like the one above). Since other package managers solve this via a special deploy mode which doesn't require you to mix your dependencies and source together. I think its important to give people the choice :) |
OK, looks like it's time to lock this thread. Sorry people wanting to continue this conversation productively, but we've hit the hackernews/mainstream point where the tone of the conversation is going awry due to outsiders. If you'd like to reach out to me or the CocoaPods team, you can direct message me on twitter (same username) for a quick response, or use GitHub staff we totally appreciate the discussion, and will update this thread once we've got somewhere towards having a release with some fixes. I'll unlock it then 👍. |
Shame :( |
Just a quick update: I've just released CocoaPods v1.0.0.beta.6 with a few improvements to how we handle specs repos, particularly https://github.com/CocoaPods/Specs. The full CHANGELOG is available at https://github.com/CocoaPods/CocoaPods/releases/tag/1.0.0.beta.6, but in short:
In the next beta, we will be adding forward compatibility support for a sharded specs repo directory structure, to be migrated to in a few months. We hope that this set of changes will lead to a better user experience in the long run for all users of CocoaPods, and will also help ease the burden of serving the master specs repository that GitHub faces. I speak on behalf of the team when I say thank you to everyone who has helped us over the past week, in particular @DanielTomlinson and @mrackwitz for making massive pull requests, @orta and @alloy for helping coordinate this effort, and the entire GitHub team, particularly @vmg, @mhagger, and @arthurnn for providing technical advice and infrastructure to CocoaPods, our users, and the entire open source community. If anyone has further questions / comments about this release and the work to come, please feel free to reach out either to me personally ( -- ❤️ The CocoaPods Team |
I'd suspect it might be a while for users to update to 1.0.0 considering it includes many breaking changes over previous versions. Does anyone think it would be worth back porting these fixes to the 0.39.x series and issuing a patch update removing shallow etc? Especially if the master repository is going to be sharded and become incompatible with 0.39. |
@kylef I agree it would be good to have a 0.40 with some of these changes. |
@kylef it would certainly help our teams! |
Thanks everyone for sticking with us! We've written up a post-mortem of the issue and the steps taken to mitigate at http://blog.cocoapods.org/Master-Spec-Repo-Rate-Limiting-Post-Mortem/. |
Please see https://blog.cocoapods.org/CocoaPods-1.7.2/ as version 1.7.2+ has switched to use CDN and fresh installs of CocoaPods do not need to clone the master specs repo anymore. |
Note from @orta -
If you are here because your Specs repo isn't updating, run:
cd ~/.cocoapods/repos/master && git fetch --depth=2147483647
- this will convert your local repository of Podspecs to be a full clone, as opposed to a shallow copy.What did you do?
Run
pod setup
What did you expected to happen?
Clone Spec repo master
What happened instead?
It only downloads a few bytes and then throws error:
Podfile
No Podfile yet
I also tried cloning the repo manually or with the githhub desktop app with no avail.
I´m having no issues cloning any other repo in github. Only with this one. Is it possible there is something wrong with it???
Thanks
The text was updated successfully, but these errors were encountered: