Make audit recognise head-only and devel-only in all taps #41289
Conversation
- add wildcard into expressions to identify head-only and dev-only taps to avoid "head-only" and "devel-only" errors when recipie is in *head-only or *devel-only tap
This one is working and tested locally. |
Looks like you accidentally committed a patch file too. |
Envoyé de mon iPhone
True - sorry.
|
@@ -421,11 +421,11 @@ def audit_homepage | |||
end | |||
|
|||
def audit_specs | |||
if head_only?(formula) && formula.tap.to_s.downcase != "homebrew/homebrew-head-only" | |||
if head_only?(formula) && formula.tap.to_s.downcase !~ /.*head-only/ |
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.
/-head-only/
should be enough here, I believe.
@Homebrew/owners I think I prefer this approach to #41413 and I think given there's a few tap authors asking for this we should merge something. |
@MikeMcQuaid This would require any head-only or devel-only formulae to be split into separate taps, right? So in my case (#41413), I would need to create new taps for |
@jawshooah Yes, they would. |
Makes sense. It's probably a good convention to follow anyway, so that a user can confidently Shall I close the other PR, or would you like to wait for input from other maintainers? |
@jawshooah Thanks for understanding. Let's wait for input for now. Long-term I'd love to see HEAD install doing something smart using |
A while back I threw together a rough idea of storing the Theoretically we could handle the performance hit by making people specify they wanted to update/upgrade their installed |
Yeah, this issue has been discussed at length in #13197. The problems with Perhaps |
I just committed the required changes. Let me know if you would prefer a clean pull request with only one commit. |
add wildcard into expressions to identify head-only and dev-only taps to avoid "head-only" and "devel-only" errors when formula is in *head-only or *devel-only tap Closes Homebrew#41289. Closes Homebrew#41413. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
taps to avoid "head-only" and "devel-only" errors when recipie is in
*head-only or *devel-only tap