-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
cloning is broken #150323
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
|
Yes it is, this is a GitHub issue which Homebrew has no control over.
It has not relied on that for users since February when 4.0.0 came out. |
@SMillerDev interesting, it is constantly failing on our CI starting last week with exactly this error :/ |
By "a Github issue", do you mean something broken with fetches? I ask because there are no known incidents and it's been a few days since the last one with git operations. If that is the case, perhaps this issue should be about error handling in homebrew that notifies the user why there's a problem, where to look on Github for confirmation of it, and who to contact if the problem continues. In case it is helpful, here is a record of the brew update output:
The object id appears to change every time. |
We're having a similar issue in CI/CD using CircleCI:
|
It means our repo is hosted on github and we don't have control apart from pushing and pulling to it. If git says the repo is corrupt it's not something Homebrew can fix or affect in any way.
That sounds like it's a feature request so it should be a pull request then.
We don't really know why our hosted repo is broken. Nor can we really get that information from git.
The issue tracker, but that is defined in https://docs.brew.sh/Troubleshooting already
Nobody, we're all volunteers and nobody specifically can be contacted about Homebrew issues. |
(FWIW, this is now working for me.) I'm not sure I quite communicated this well. Here's an example of what I might expect the software to do:
That is, right now here seems to be the place to post about the problem, yet the response is "it's a github problem and we can't do anything about it". So if we can preemptively tell users that, we wouldn't need to have Homebrew issues created every time Github has a service outage. |
On my local copy seems to fix it for me? |
Where it breaks seems to be non-deterministic, and occasionally it just works:
Definitely a github and not a Homebrew issue |
git fsck
git pull # or brew update worked for me too... but tbh I don't know why 🤔. And cloning from scratch still fails. I'm under the vague impression that I cloned and got the same error on a case-sensitive filesystem too (a Debian machine, running git 2.39.1), so I don't think it's a case collision of some kind. Hopefully it's just github and not the repository somehow. |
I don’t even have a local repo. Just doing a git clone gives the error
before any local repo gets created.
…On Mon, Jul 3, 2023 at 6:07 PM Steven L ***@***.***> wrote:
git fsck -> git pull (or brew update) worked for me too... but tbh I
don't know why 🤔
I'm under the vague impression that git fsck runs entirely locally (no
checks of objects with your remotes), but if that's correct, how did a
bunch of people's *local* git repos get corrupted simultaneously? Or is
this a symptom of a strange change to the remote repo (removed tag/branch?
something weirder? I have no idea how to cause this)?
—
Reply to this email directly, view it on GitHub
<#150323 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACDPXPRL2CMFED2FA2TJRB3XOM7CXANCNFSM6AAAAAAZ4TDO3I>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@Groxx I don't think |
We're talking to GitHub about this issue and progress is being made. Just to clarify things here, given somethings have changed since Homebrew 4.0.0:
|
@Bo98 : thank you! I temporarily unblocked our release pipeline by pinning homebrew/actions version |
Would something like Homebrew/actions#391 help your particular case? |
Perfect - this is exactly what I was looking for! |
MacOS has an issue with homebrew. More info Homebrew/homebrew-cask#150323 (comment)
Currently, look like git clone works well, but still failed from CircleCI. |
Homebrew 4.0.27 contains a change for non-developers that skips homebrew-cask fetching if you don't have This change does not apply to GitHub Actions as GitHub sets For other CI providers, like CircleCI, I'd like to hear more about your setup. What base image are you using? What commands are you running? In terms of the fixing the root cause of the underlying git issue, progress has been made with GitHub on this issue and hopefully there will be more to share soon. |
We seem to be hitting Homebrew/homebrew-cask#150323 which recommends this workaround. Signed-off-by: Jesse Szwedko <[email protected]>
We seem to be hitting Homebrew/homebrew-cask#150323 which recommends this workaround. Signed-off-by: Jesse Szwedko <[email protected]> Signed-off-by: Jesse Szwedko <[email protected]>
* Workaround broken 'brew update' See: actions/runner-images#7855 Homebrew/homebrew-cask#150323
* Workaround broken 'brew update' See: actions/runner-images#7855 Homebrew/homebrew-cask#150323
We seem to be hitting Homebrew/homebrew-cask#150323 which recommends this workaround. Signed-off-by: Jesse Szwedko <[email protected]> Signed-off-by: Jesse Szwedko <[email protected]>
We seem to be hitting Homebrew/homebrew-cask#150323 which recommends this workaround. Signed-off-by: Jesse Szwedko <[email protected]> Signed-off-by: Jesse Szwedko <[email protected]>
GitHub has completed a rollout of a fix, and results so far indicate that the errors have stopped. I'll continue to monitor over the weekend. Thanks to the git systems team at GitHub who have worked all week on tracking down and fixing the root cause. We've also asked the GitHub Actions team to make some changes to their images that should eliminate the impact if this issue were to ever happen again. These changes will hopefully be rolled out soon. |
Verification
--force
.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
Command that failed
git clone https://github.com/homebrew/homebrew-cask
Output of command with
--verbose --debug
Output of
brew doctor
andbrew config
Output of
brew tap
The text was updated successfully, but these errors were encountered: