Closed AngeloAvv closed 9 months ago
CC @Bo98 as looks related to Ruby 3 vendoring work.
This looks to be something to do with installing over a partially uninstalled Homebrew. Note how mkdir -p /usr/local/Homebrew
isn't present which means that /usr/local/Homebrew
already exists. Would be good to know the state of things.
I do have one theory where it could break because the installer fetches the latest master
but brew update
downgrades this to the latest tag while staying in Ruby 3 mode (blind fix at https://github.com/Homebrew/brew/pull/16277). I would have expected that to affect all installs rather than just installs with an already partially existing Homebrew though. 🤷♂️
This looks to be something to do with installing over a partially uninstalled Homebrew. Note how
mkdir -p /usr/local/Homebrew
isn't present which means that/usr/local/Homebrew
already exists. Would be good to know the state of things.
If I perform a full uninstall (by also removing folders the script is not able to delete due to missing sudo permission) and I attempt a reinstall using the default script, everything works fine. But if I try to perform another install, the aforementioned error will occur.
This is awkward because I run my CI into a physical machine and it's complicated to uninstall brew every time the process is finished, that's why I decided to reinstall over and over. But suddenly something changed and now the script is failing.
I've merged something that might work. Give it a try again and let me know.
It's working! Thanks!!
install
oruninstall
script?brew config
andbrew doctor
and included their output with your issue? If you couldn't install: provided your OS version with the output of your issue?OS Version: macOS Ventura 13.5.2
What you were trying to do (and why)
I have a classic CI/CD script that compiles iOS artifacts on a server. It relies on brew to install tools used during the process. It started failing today.
Seems like if you try to install brew multiple times after you already installed it, it will fail
What happened (include command output)
Brew setup fails due to sorbet-runtime. I also tried to install sorbet-runtime manually through gem but it keeps failing. Other people are experiencing my problem as mentioned here
Command output
What you expected to happen
I expect the script to install brew and my CI to complete its job without failing. OS/software haven't been updated since months.
Step-by-step reproduction instructions (by running
brew
commands)/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"