-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
formula_installer: restrict use of Formula from Keg #11532
formula_installer: restrict use of Formula from Keg #11532
Conversation
Review period will end on 2021-06-15 at 12:21:00 UTC. |
Review period skipped due to |
0a7be33
7235427
to
0a7be33
Compare
Just tweaked this since according to #11532 (comment), the formula will always exist in the prefix unless deleted, so the condition was redundant. We haven't seen the error mentioned there (yet), so I haven't tweaked any messaging. |
0a7be33
to
4cec90c
Compare
With the latest push, the formula from the installation prefix is used only if:
I'm using The formula from the tap is used in all other cases, including:
I think this does what we want in all possible cases, except when the formula from the keg is unreadable and an older version is installed – we'd like to use the keg formula but it's not possible (as of now). It took me a while to wrap my head around this, so hopefully I've got it right 😅. |
4cec90c
to
b9d64fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?Restrict usage of the formula file from the bottle. Should fix #11468 (comment).
Formulae which require files from
lib
in the Tap could probably not getpost_install
to work if installing them without tapping the Tap.