From d5f3b4a25e0c11d5f4d363d7fc79d7809a289546 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Thu, 25 Apr 2024 02:50:25 +0200 Subject: [PATCH] chore: generate --- dist/post_run/index.js | 7 ++----- dist/run/index.js | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/dist/post_run/index.js b/dist/post_run/index.js index cc32c6d74d..19e19f6682 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -88813,9 +88813,6 @@ const pathExists = async (path) => !!(await fs.promises.stat(path).catch(() => f const getLintCacheDir = () => { return path_1.default.resolve(`${process.env.HOME}/.cache/golangci-lint`); }; -const getCacheDirs = () => { - return [getLintCacheDir()]; -}; const getIntervalKey = (invalidationIntervalDays) => { const now = new Date(); const secondsSinceEpoch = now.getTime() / 1000; @@ -88862,7 +88859,7 @@ async function restoreCache() { } core.saveState(constants_1.State.CachePrimaryKey, primaryKey); try { - const cacheKey = await cache.restoreCache(getCacheDirs(), primaryKey, restoreKeys); + const cacheKey = await cache.restoreCache([getLintCacheDir()], primaryKey, restoreKeys); if (!cacheKey) { core.info(`Cache not found for input keys: ${[primaryKey, ...restoreKeys].join(", ")}`); return; @@ -88890,7 +88887,7 @@ async function saveCache() { return; } const startedAt = Date.now(); - const cacheDirs = getCacheDirs(); + const cacheDirs = [getLintCacheDir()]; const primaryKey = core.getState(constants_1.State.CachePrimaryKey); if (!primaryKey) { utils.logWarning(`Error retrieving key from state.`); diff --git a/dist/run/index.js b/dist/run/index.js index c57b74e5e3..5420ea83b5 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -88813,9 +88813,6 @@ const pathExists = async (path) => !!(await fs.promises.stat(path).catch(() => f const getLintCacheDir = () => { return path_1.default.resolve(`${process.env.HOME}/.cache/golangci-lint`); }; -const getCacheDirs = () => { - return [getLintCacheDir()]; -}; const getIntervalKey = (invalidationIntervalDays) => { const now = new Date(); const secondsSinceEpoch = now.getTime() / 1000; @@ -88862,7 +88859,7 @@ async function restoreCache() { } core.saveState(constants_1.State.CachePrimaryKey, primaryKey); try { - const cacheKey = await cache.restoreCache(getCacheDirs(), primaryKey, restoreKeys); + const cacheKey = await cache.restoreCache([getLintCacheDir()], primaryKey, restoreKeys); if (!cacheKey) { core.info(`Cache not found for input keys: ${[primaryKey, ...restoreKeys].join(", ")}`); return; @@ -88890,7 +88887,7 @@ async function saveCache() { return; } const startedAt = Date.now(); - const cacheDirs = getCacheDirs(); + const cacheDirs = [getLintCacheDir()]; const primaryKey = core.getState(constants_1.State.CachePrimaryKey); if (!primaryKey) { utils.logWarning(`Error retrieving key from state.`);