diff --git a/dist/post_run/index.js b/dist/post_run/index.js index b53c63cc94..cac14aa280 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -66447,11 +66447,9 @@ const getIntervalKey = (invalidationIntervalDays) => { function buildCacheKeys() { return __awaiter(this, void 0, void 0, function* () { 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 (yield pathExists(`go.mod`)) { // Add checksum to key to invalidate a cache when dependencies change. diff --git a/dist/run/index.js b/dist/run/index.js index df050f044b..fd5dee7009 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -66447,11 +66447,9 @@ const getIntervalKey = (invalidationIntervalDays) => { function buildCacheKeys() { return __awaiter(this, void 0, void 0, function* () { 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 (yield pathExists(`go.mod`)) { // Add checksum to key to invalidate a cache when dependencies change. diff --git a/src/cache.ts b/src/cache.ts index c29f29542d..a06f33f5e6 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`)) {