-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Pass original tap to formula when loaded from the API via TapLoader
#16216
Conversation
Makes sense to fix as it was before, but why does it behave this way? Seems really odd to have a formula in homebrew/core have a |
|
Co-authored-by: Alexander Mancevice <[email protected]>
Yeah, agreed it seems odd to intentionally use an old tap. I've pushed a fix. @amancevice this means your original fix was good. I've included it here for simplicity sake but have added you as a co-author. Thank you for submitting the original fix! |
very sporting of you @Rylan12 — cheers 🍻 |
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.
Thanks @Rylan12!
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?Fixes #16213
Follow-up to #16207
Supercedes #16215
This PR fixes the
TapLoader
refactoring to properly pass the old tap to the newly created formula, even though it is referencing the new formula file. This is consistent with the old behavior. This also fixes the newly-created issue where migrating to a different non-core tap but with the same name as a core tap incorrectly chooses the core formula.Finally, this PR adds some more tests.
CC @MikeMcQuaid, @Bo98, and @amancevice