Skip to content
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

Conversation

apainintheneck
Copy link
Contributor

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run 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.

`brew audit` doesn't work as expected when users
pass in formula/cask paths so we are deprecating it.
@BrewTestBot
Copy link
Member

Review period will end on 2022-12-23 at 18:07:35 UTC.

@BrewTestBot BrewTestBot added the waiting for feedback Merging is blocked until sufficient time has passed for review label Dec 22, 2022
@BrewTestBot BrewTestBot removed the waiting for feedback Merging is blocked until sufficient time has passed for review label Dec 23, 2022
@BrewTestBot
Copy link
Member

Review period ended.

@apainintheneck apainintheneck merged commit 73d4c1b into Homebrew:master Dec 27, 2022
@@ -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 ...]",
Copy link
Member

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.

Copy link
Member

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

Copy link
Member

@p-linnane p-linnane Dec 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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.

Copy link
Contributor Author

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.

@apainintheneck apainintheneck deleted the deprecate-passing-paths-to-audit branch January 3, 2023 00:30
@github-actions github-actions bot added the outdated PR was locked due to age label Feb 3, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants