You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running Topgrade on macOS with the Workbrew version of Brew installed gives an error:
── 11:39:55 - Brew ─────────────────────────────────────────────────────────────
Error: /opt/homebrew/Cellar is not writable. You should change the
ownership and permissions of /opt/homebrew/Cellar back to your
user account:
sudo chown -R xxxxxx /opt/homebrew/Cellar
Brew (ARM) failed:
0: Command failed: `/opt/homebrew/bin/brew update`
1: `/opt/homebrew/bin/brew` failed: exit status: 1
Expected Behavior
It would be good to have it work; doing the manual steps along the lines of brew doctor, brew update, brew upgrade, etc all function as expected from a terminal.
Steps to reproduce
On a Mac (in my case Apple Silicon/ARM based), install and setup the Workbrew version of Brew (https://workbrew.com)
── 12:48:32 - Brew ─────────────────────────────────────────────────────────────
DEBUG Executing command /opt/homebrew/bin/brew update
Error: /opt/homebrew/Cellar is not writable. You should change the
ownership and permissions of /opt/homebrew/Cellar back to your
user account:
sudo chown -R xxxxxx /opt/homebrew/Cellar
DEBUG Command failed: Err(
0: Command failed: /opt/homebrew/bin/brew update
1: /opt/homebrew/bin/brew failed: exit status: 1
Erroneous Behavior
Running Topgrade on macOS with the Workbrew version of Brew installed gives an error:
Expected Behavior
It would be good to have it work; doing the manual steps along the lines of
brew doctor
,brew update
,brew upgrade
, etc all function as expected from a terminal.Steps to reproduce
Possible Cause (Optional)
It looks like line 39 of https://github.com/search?q=repo%3Atopgrade-rs%2Ftopgrade%20ARM_BREW&type=code assumes that the path for Brew for ARM is
/opt/homebrew/bin/brew
. However, Workbrew, which runs over the top of homebrew and acts as a wrapper is located at/opt/workbrew/bin/brew
.Possible easy fix would be to enable a configuration item to overwrite the path for brew, or have the code detect the location of brew in the path.
Problem persists without calling from topgrade
Did you run topgrade through
Remote Execution
If yes, does the issue still occur when you run topgrade directlly in your
remote host
Additional Details
Operation System/Version
macOS 15.2 (24C101)
Installation
Installed via brew
Topgrade version (
topgrade -V
)topgrade 16.0.2
Verbose Output (
topgrade -v
)(replaced username with
xxxxxx
)The text was updated successfully, but these errors were encountered: