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

Expire cache periodically to avoid unbounded size #466

Merged
merged 2 commits into from May 11, 2022
Merged

Expire cache periodically to avoid unbounded size #466

merged 2 commits into from May 11, 2022

Commits on May 11, 2022

  1. Expire cache periodically to avoid unbounded size

    The cache key includes a sequence number that rotates every 7 days
    but because we are also using the base `golangci-lint.cache` as a
    restore key, the new cache will always be seeded with the full
    contents of the old cache.
    
    In particular for the go module cache, this leads to an ever
    increasing number of cached packages that never get pruned.
    
    This commit updates it so we stop using `golangci-lint.cache` as
    a restore key, which will force a build from an empty cache once
    every 7 days.
    ezimanyi authored and SVilgelm committed May 11, 2022
    Copy the full SHA
    d93ab86 View commit details
    Browse the repository at this point in the history
  2. Rebuild files in dist/

    ezimanyi authored and SVilgelm committed May 11, 2022
    Copy the full SHA
    455b21a View commit details
    Browse the repository at this point in the history