[BUG] Unable to run Mole
Describe the bug
After installing/upgrading mole with Homebrew, the mo command fails immediately because the wrapper script points to an older Cellar path that no longer exists.
Homebrew reports that mole 1.44.1 is installed but not linked, while running mo tries to load files from mole/1.41.0:
/opt/homebrew/bin/mole: line 45: /opt/homebrew/Cellar/mole/1.41.0/libexec/lib/core/common.sh: No such file or directory
This looks like a stale/broken Homebrew symlink or wrapper script after an upgrade.
Steps to reproduce Install or upgrade mole using Homebrew: brew install mole Homebrew reports: Warning: mole 1.44.1 is already installed, it's just not linked. To link this version, run: brew link mole Run the command: mo See the error: /opt/homebrew/bin/mole: line 45: /opt/homebrew/Cellar/mole/1.41.0/libexec/lib/core/common.sh: No such file or directory Expected behavior
The mo command should run normally and use the currently installed Homebrew version, mole 1.44.1, instead of referencing the old removed path /opt/homebrew/Cellar/mole/1.41.0.
System:
macOS on Apple Silicon Homebrew prefix: /opt/homebrew Installed mole version reported by Homebrew: 1.44.1 Broken referenced version: 1.41.0
@daxitsolutions try v1.45.0 - mo update
I don't know what happen.. brew install corrupt the upgrade...
What I did : > rf -rf the entire dir Install manually : > curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash