Commit 537aa19
authored
Expire cache periodically to avoid unbounded size (#466)
* 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.
* Rebuild files in dist/1 parent f70e52d commit 537aa19
3 files changed
+3
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66447 | 66447 | | |
66448 | 66448 | | |
66449 | 66449 | | |
66450 | | - | |
66451 | | - | |
66452 | 66450 | | |
66453 | 66451 | | |
66454 | | - | |
| 66452 | + | |
66455 | 66453 | | |
66456 | 66454 | | |
66457 | 66455 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66447 | 66447 | | |
66448 | 66448 | | |
66449 | 66449 | | |
66450 | | - | |
66451 | | - | |
66452 | 66450 | | |
66453 | 66451 | | |
66454 | | - | |
| 66452 | + | |
66455 | 66453 | | |
66456 | 66454 | | |
66457 | 66455 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 55 | | |
59 | 56 | | |
60 | | - | |
| 57 | + | |
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
| |||
0 commit comments