diff --git a/src/cache.ts b/src/cache.ts index c29f295..a06f33f 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -52,12 +52,9 @@ const getIntervalKey = (invalidationIntervalDays: number): string => { async function buildCacheKeys(): Promise { const keys = [] - let cacheKey = `golangci-lint.cache-` - keys.push(cacheKey) - // Periodically invalidate a cache because a new code being added. // TODO: configure it via inputs. - cacheKey += `${getIntervalKey(7)}-` + let cacheKey = `golangci-lint.cache-${getIntervalKey(7)}-` keys.push(cacheKey) if (await pathExists(`go.mod`)) {