-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
brew list --cask shows symlinks of renamed packages #18849
Labels
Comments
Probably need to add a symlink check here. |
@yochem Could you try and open a pull request? This document should help and we're happy to walk you through anything else. Thanks! |
vidishanevatia
pushed a commit
to vidishanevatia/brew
that referenced
this issue
Dec 17, 2024
When a cask is renamed (e.g. logi-options-plus to logi-options+), Homebrew creates a symlink in the Caskroom directory. Currently, `brew list --cask` shows both the original and symlinked cask as separate entries. This patch modifies the listing logic to resolve symlinks and show only unique casks. Fixes Homebrew#18849
7 tasks
The documentation was super helpful, I tested it with your reproduction instruction and it works just fine. Opened a PR above. @yochem |
github-merge-queue bot
pushed a commit
that referenced
this issue
Dec 17, 2024
Fixes #18849 : fix duplicate casks when symlinks exist
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
List all casks available on my system (to see if some could be removed)
What happened (include all command output)?
I thought, oh, I have both logi-options-plus and logo-options+ installed (same with iterm2). Better remove the former:
Oh. I don't want to remove that one.
Let's check:
Ah, symlinks, and the brew list command probably just lists the directory.
What did you expect to happen?
brew list --cask
shows exactly which casks I have installed and ignores links to the same cask.Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: