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

chore: only check for db update if local db is old enough #2005

Closed
wants to merge 3 commits into from

Commits on Jul 24, 2024

  1. chore: only check for db update if local db is old enough

    Previously, grype would check for a database update on every invocation.
    However, this was causing slow downs in the CDN. Since new databases are
    typically made available every 24 hours, change grype to, by default,
    only check if a new database is available if the local database is more
    than 12 hours old.
    
    Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
    willmurphyscode committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    7192206 View commit details
    Browse the repository at this point in the history
  2. chore: go mod tidy

    Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
    willmurphyscode committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    5958361 View commit details
    Browse the repository at this point in the history
  3. move update force check to PreRunE

    Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
    willmurphyscode committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    786053e View commit details
    Browse the repository at this point in the history