-
-
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
Deprecate path args to audit cmd #14285
Deprecate path args to audit cmd #14285
Conversation
`brew audit` doesn't work as expected when users pass in formula/cask paths so we are deprecating it.
Review period will end on 2022-12-23 at 18:07:35 UTC. |
Review period ended. |
@@ -140,6 +140,11 @@ def audit | |||
no_named_args = true | |||
[Formula.all, Cask::Cask.all] | |||
else | |||
if args.named.any? { |named_arg| named_arg.end_with?(".rb") } | |||
odeprecated "brew audit [path ...]", |
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.
Oops, for future reference we normally don't add deprecations before major or minor releases. Can either comment this out for now or just leave it if no-one else cares.
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.
I'd say let's keep it and revert if we get a single complaint/issue
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.
Seeing failures on homebrew-cask
CI: https://github.com/Homebrew/homebrew-cask/actions/runs/3789525755/jobs/6443372033
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.
That might be a good reason to comment this out for now. I wouldn't be surprised if other cask taps have copied our CI configuration to an extent, and if we're seeing errors they may be too. I'm also okay waiting to hear if anyone actually opens an issue, though.
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.
Yeah, sorry, I didn't realize that. I think it makes sense to comment it out for now. I assume this is was only failing for us because we set HOMEBREW_DEVELOPER
, right?
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.
The CI config specifically passes the path to audit
. I just updated it to use token
instead.
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.
I opened up #14295 to comment out the deprecation until a future release.
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?brew audit
doesn't work as expected when users pass in formula/cask paths so we are deprecating it.