This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Description
brew upgrade formula on a formula that was initially installed with the --HEAD option fails with:
Error: formula-HEAD already installed
There is no clear way to upgrade a formula installed with --HEAD other than uninstalling and re-installing. Example:
jason@woodhouse:/usr/local/Library/Formula$ brew install --HEAD wol
==> Cloning https://github.com/kylef/wol.git
Cloning into /Users/jason/Library/Caches/Homebrew/wol--git...
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 13 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (13/13), done.
==> make
/usr/local/Cellar/wol/HEAD: 4 files, 24K, built in 16 seconds
jason@woodhouse:/usr/local/Library/Formula$ brew upgrade wol
Error: wol-HEAD already installed
jason@woodhouse:/usr/local/Library/Formula$ brew upgrade --HEAD wol
Error: wol-HEAD already installed
jason@woodhouse:/usr/local/Library/Formula$
Max Howell suggested that this should either be fixed or the error message improved and requested I open this ticket.