Mole icon indicating copy to clipboard operation
Mole copied to clipboard

[BUG] Unable to run Mole

Open daxitsolutions opened this issue 4 months ago • 2 comments

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 avatar Jul 05 '26 17:07 daxitsolutions

@daxitsolutions try v1.45.0 - mo update

lazuee avatar Jul 06 '26 03:07 lazuee

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

daxitsolutions avatar Jul 06 '26 06:07 daxitsolutions