-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Running brew endlessly spawns git processes until killed #10762
Comments
Can you try If it doesn't, what is the output of
? |
I will also add that if I go to
|
That's troubling. Can you do a This is also weird:
On my system:
Your
I don't see how it's related to the issue you're having, if at all, though. |
We've been trying to debug this internally for the last hour or so as it's affecting certain Github Actions we're using. This is the problem commit:
|
I actually edited that output before you commented. That was a mistake on my end. It was only picking up the Apple version of git because I had messed with my Annnnnyway, I had never used
|
I'm not a bash expert, but if I remove this block from https://github.com/Homebrew/brew/blob/master/Library/Homebrew/shims/scm/git, it runs. Is this causing an infinite loop somehow? brew/Library/Homebrew/shims/scm/git Lines 6 to 10 in f43cc96
|
Yeah those backticks will cause the problem. It would be interesting to know why |
My |
The issue was |
FYI I had this problem with linuxbrew (Homebrew/discussions#949), and I use |
My general recommendation is that if anyone is currently using At this point, |
brew config
outputbrew
does not run, so unfortunately I cannot runbrew
configbrew doctor
outputSee above.
brew doctor
above contains no "Warning" lines.What were you trying to do (and why)?
I was trying to run
brew
.I have reproduced this problem on both my M1 Macbook Air and now my Intel iMac. On the iMac,
brew
was working fine until I ranbrew update
and nowbrew
hangs once again. The symptoms are identical on both machines.What happened (include all command output)?
See screen recording below.
On the right pane, I'm running
brew
. On the left, an htop window filtered to all processes containingbrew
.When I run
brew
, it spawns new git processes endlessly until killed.What did you expect to happen?
I expected brew to work w/o issue.
Step-by-step reproduction instructions (by running
brew
commands)Other than updating brew to the latest version, the steps to reproduce are:
brew
My sense is this is something to do with my machine configuration, but it's confusing that it happened with two separate machines, and especially concerning that it was fine on my iMac until updating to the latest Homebrew.
The text was updated successfully, but these errors were encountered: