-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
cloning repo is broken #135315
Comments
This is a GitHub issue we have no control over. I am told it they have fixed the issue so give it another try. If not, try a few times as it the error doesn't seem to happen every time. |
it's not a github issue. anyway, it is possible
but I cannot pass "depth 1" to brew install script |
please consider adjusting https://raw.githubusercontent.com/Homebrew/install/master/install.sh to clone with depth 1, it will prevent from such errors |
It is a GitHub issue. We are talking to them directly about it and some replicas on their end are missing parts of the repo, causing the errors you have reported. |
We don't do this because it causes severe performance issues that lead to GitHub asking us to stop using that flag. https://github.com/Homebrew/brew/blob/master/Library/Homebrew/cmd/update.sh#L474 |
I do not suggest to change default behaviour. I'm ok with default clone, people may expect it. however, if I need just the latest commit, I'm fine to say "depth 1" and I do not care of broken git indices. |
maybe it makes sense to keep |
Same issue. This is what ended up working for me: My system: Removed and rebuilt core with @ilia-shipitsin suggestion to fetch the shallow image
This will pull down ~400MB and resolve over 1 million deltas, be patient brew update should now be up-to-date and brew upgrade should work |
This is breaking routinely using the standard GH Actions homebrew action, https://github.com/ddev/ddev-platformsh/blob/ea9eb17449728c6dcb57dd95b75939a37da49da9/.github/workflows/tests.yml#L47-L49 It's breaking every repo (there are MANY) that uses it. I do note that it's using Examples: https://github.com/ddev/ddev-platformsh/actions/runs/5415041350 |
|
GitHub has asked us explicitly not to do this. |
thank you very much for closing this issue. you are very helpful however, I still cannot clone repo
|
Latest update from GitHub is that they're rolling back code changes that caused this issue. It's being worked on. We're well aware of the issue as it stalls all of our own CI, so we're not ignoring this by any means.
FWIW, this is one of the only reasons left to use |
If you want an indication of recovery, check https://github.com/Homebrew/formulae.brew.sh/actions/workflows/scheduled.yml which is a job that runs every 15 minutes and fetchs Homebrew/core twice. If either of those fail then the whole job fails. |
And that's still not something for us to fix. Do you also complain to your car dealer about road closures? |
sorry, I did not realize that |
I realise you're upset at us for this issue occurring but to follow up for the benefit for anyone else following along: GitHub has identified and fixed what they believe to be the root cause, and has finished the repair operation on homebrew-core. This issue should now be resolved, and our own monitoring has confirmed this so far. Big thanks to the git systems team there who worked most of the day on resolving this issue. I'll continue to monitor and keep an eye out to see if this regresses again, as the nature of the issue means it doesn't always happen on every fetch (I happened to be lucky enough to never experience it on my local machine despite trying) and may not resurface for a number of hours. homebrew-core is a particularly complex repo which has been subject to even having its CPU usage featured on the GitHub blog. Not only is the repository massive, it has millions of people using it every day. This is why decisions like shallow clones are not as trivial many may think (e.g. if shallow clones were to make its way into a CI image, it would then spread a large server load when a bunch of repos run Thankfully however, since Homebrew 4.0.0, homebrew-core clones are not required (except certain usages of |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputit would be nice to fix, because we use
https://raw.githubusercontent.com/Homebrew/install/master/install.sh
and it clones repo, thus fails :(git clone https://github.com/Homebrew/homebrew-core
Cloning into 'homebrew-core'...
remote: Enumerating objects: 1532699, done.
remote: Counting objects: 100% (34185/34185), done.
remote: fatal: object 0acc93f8ce85f8561492a6b56256ed7f0035af76 cannot be read
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
The text was updated successfully, but these errors were encountered: