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
This does not work. The linking fails. Here's what happens.
$ brew install mysql
$ brew bundle
Using [email protected]
Error: Could not symlink bin/comp_err
Target /opt/homebrew/bin/comp_err
is a symlink belonging to mysql. You can unlink it:
brew unlink mysql
To force the link and overwrite all conflicting files:
brew link --overwrite [email protected]
To list all files that would be deleted:
brew link --overwrite [email protected] --dry-run
Linking /opt/homebrew/Cellar/[email protected]/8.0.39_1...
Homebrew Bundle complete! 1 Brewfile dependency now installed.
$ echo $?
0
The linking fails. Also brew bundle incorrectly exits with status code 0 for successful execution. This is not true.
The docs reference a -f to force overwriting. This also does not work as expected. The brew link step fails in the same way:
$ brew bundle -f
Using [email protected]
Error: Could not symlink bin/comp_err
Target /opt/homebrew/bin/comp_err
is a symlink belonging to mysql. You can unlink it:
brew unlink mysql
To force the link and overwrite all conflicting files:
brew link --overwrite [email protected]
To list all files that would be deleted:
brew link --overwrite [email protected] --dry-run
Linking /opt/homebrew/Cellar/[email protected]/8.0.39_1...
Homebrew Bundle complete! 1 Brewfile dependency now installed.
$ echo $?
0
Note the command still exits 0 even though a part failed.
The only way to resolve the issue is to manually run brew unlink mysql prior to brew bundle. This apparently defeats the purpose of the link and conflicts_with options.
$ brew unlink mysql
Unlinking /opt/homebrew/Cellar/mysql/9.0.1... 97 symlinks removed.
$ brew bundle
Using [email protected]
Homebrew Bundle complete! 1 Brewfile dependency now installed.
$ mysql --version
mysql Ver 8.0.39 for macos14.4 on arm64 (Homebrew)
From the docs:
We want
[email protected]
installed and linked. So we have this in ourBrewfile
:This does not work. The linking fails. Here's what happens.
The linking fails. Also
brew bundle
incorrectly exits with status code0
for successful execution. This is not true.The docs reference a
-f
to force overwriting. This also does not work as expected. Thebrew link
step fails in the same way:Note the command still exits
0
even though a part failed.The only way to resolve the issue is to manually run
brew unlink mysql
prior tobrew bundle
. This apparently defeats the purpose of thelink
andconflicts_with
options.This issue seems similar to #932.
My Current bundle version
The text was updated successfully, but these errors were encountered: