Closed emilbayes closed 10 years ago
You'll probably also need to manually remove the cask
directories involved for it to go away completely. Try brew untap caskroom/homebrew-cask
and try again. You may also need to manually remove the caskroom directory in opt
.
@DomT4 cask
is not the same as brew-cask
. That's the mistake I made :) I meant to install caskroom
, but inadvertently installed a project management tool called cask
@tixz Aha! Indeed. Well, now I feel a little silly :wink:. Did you try a brew cleanup && brew prune
after you removed cask
? Sometimes helps to remove any lingering directories.
Have tried both, neither solved the issue. It's not that it's a major problem for me, I just thought that this might be a bug worth getting rid of. Lot's of peoples' dotfiles rely on checking brew --prefix something
, and if this is a bug, would yield lots of false positives.
The path reported by homebrew doesn't exist either, so it must be something internal to homebrew.
➜ ~ brew --prefix cask
/usr/local/opt/cask
➜ ~ brew remove cask
Uninstalling /usr/local/Cellar/cask/0.7.2...
➜ ~ brew --prefix cask
/usr/local/Cellar/cask/0.7.2
➜ ~ brew remove cask
Error: No such keg: /usr/local/Cellar/cask
➜ ~ brew cleanup && brew prune
Pruned 0 dead formulae
Tapped 675 formulae
➜ ~ brew --prefix cask
/usr/local/Cellar/cask/0.7.2
Yeah, that's a little odd. Maybe that's intentional behaviour. I'm not sure. I'll wait for one of the maintainers to chime in on this, they know the internals better than I ever could.
brew --prefix doesn't check if a formula is installed or not.
From man brew
: "Display the location in the cellar where formula is or would be installed."
Running
brew --prefix cask
reports the dir thatcask
was installed in, but no longer is. I have runbrew update
andbrew cleanup
. I have removedcask
bybrew uninstall cask
.brew doctor
reports nothing. I'm on a brand new MacBook Pro and have just updated to OS X Yosemite, however I had the same issue on Mavericks.Brew version:
0.9.5