-
Notifications
You must be signed in to change notification settings - Fork 90
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
script leaves other php kegs left unlinked #14
Comments
Hi @rot26, Thanks for your idea and I would also like to be able to not have unlinked kegs for brew. However I have never managed to find a way other than uninstalling to not have these unlinked kegs. The reason behind unlinking the other kegs is to make sure that on the CLI its the correct version of php running that a user intended. Your proposed solution I tried out and unfortunately didnt work for me, here is what I did.
If you find some other way of getting this to work I would love to hear more on it. |
Hi @philcook, Re:
I agree, but I think that when you brew link, it overwrites all the links it needs for that keg. For example, when php55 is the last keg you link, calling It looks like you did relink php55, but you would have to re-link php56 and php70 also. Whichever one you linked last will be the active version of php. I was thinking about this last night. I think we can just overwrite the symlinks instead of unlinking the other libraries. I can open a PR, but I wanted to hear your thoughts first? First, I verify that there are no issues
I am currently linked to php56.
I want to switch back to php55, but I cannot simply "relink" php55 as the main version of php I want to use
So first I unlink php55, and then force an overwrite of php55
Now I verify that php55 is infact the php version I have linked.
And I verify that I have no unlinked kegs.
|
Hello, thanks for sharing!
I noticed that after running this script, my other php kegs are left unlinked.
How to recreate
Verified no link issues:
On php version 5.6:
Now switch to 5.5:
Double check php versions:
My other remaining kegs of php are now left unlinked.
Proposed Solution
Can we make it so that this script does not leave those kegs unlinked? Usually I switch versions with this:
Thoughts?
The text was updated successfully, but these errors were encountered: