-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 link fails with multiple HEAD installations #11741
Comments
CC @cnnrmnn |
Thanks for tagging me @carlocab. Been busy lately, but I'll take a look at this when I have some time. |
You need to run The error message should still be fixed, though. Probably just an error message if Or, maybe |
That does work, though it’s a bit weird because Note I’m not in personal need of a workaround, as I’m (now) using |
Ah, I bet
So, if there are multiple head kegs and you do (This is all speculation I haven't tested) Assuming that's correct, I think |
Did some testing and your suspicions are correct.
Agreed, working on a fix now. |
brew config
outputbrew doctor
outputbrew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
brew link
on a recently installed HEAD formula.What happened (include all command output)?
What did you expect to happen?
For either
brew link
to work on the most recentHEAD
(cleanup
removed the right one, solink
should be able to know it too) or for an explanatory error message to show.Step-by-step reproduction instructions (by running
brew
commands)The following will create a mock directory structure (which works like the real thing for this purpose), followed by the command which produces the error:
mkdir -p "$(brew --Cellar)/show-rack-error/HEAD-"{1111111,2222222} brew link show-rack-error
The directory structure will be:
The text was updated successfully, but these errors were encountered: