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

cmd/audit: only flush formulary cache when needed #15987

Commits on Sep 10, 2023

  1. cmd/audit: only flush formulary cache when needed

    The cache here needs to be cleared when we are auditing multiple
    os/arch combinations but not when we are running the audit only
    for the current os/arch combination. This gives a 2x speed boost
    to `brew audit --skip-style --except-version --tap=homebrew/core` locally.
    
    In theory we could clear the cache less often by running all audits for
    one os/arch combination at a time when auditing multiple os/arch combinations.
    This would make the output a bit harder to follow and we don't seem to
    run those checks on CI so I'm skipping that for now.
    apainintheneck committed Sep 10, 2023
    Configuration menu
    Copy the full SHA
    d63e8cd View commit details
    Browse the repository at this point in the history