-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
cask/audit: audit conflicts_with stanza
#21116
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
Conversation
Signed-off-by: botantony <antonsm21@gmail.com>
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.
Pull Request Overview
This PR adds audit functionality to validate the conflicts_with stanza in cask definitions. The audit ensures that casks listed in the conflicts_with declaration actually exist in the core cask tap, helping catch typos and references to non-existent casks.
- Adds
audit_conflicts_withmethod to check for non-existent conflicting casks - Implements helper methods
core_cask_tapandcore_cask_tokensfor cask token lookup - Adds comprehensive test coverage for the new audit functionality
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| Library/Homebrew/cask/audit.rb | Implements the audit_conflicts_with method that validates conflicting cask tokens exist, plus helper methods to access core cask tokens |
| Library/Homebrew/test/cask/audit_spec.rb | Adds three test contexts covering no conflicts, existing conflicts, and missing conflicts scenarios |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I expected some audit failures, going to make a PR soon |
Signed-off-by: botantony <antonsm21@gmail.com>
p-linnane
left a comment
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.
Awesome! I didn't even realize we weren't checking this.
MikeMcQuaid
left a comment
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 again @botantony!
cask/audit: audit `conflicts_with` stanza
brew lgtm(style, typechecking and tests) with your changes locally?