From 65f50caf4238e9632388f77b1f799742d019da57 Mon Sep 17 00:00:00 2001 From: Evgenii Korolevskii Date: Fri, 20 Jan 2023 01:30:38 +0100 Subject: [PATCH] use actual version in key --- dist/setup/index.js | 3 +-- src/main.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 63dba41..0481318 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -63607,8 +63607,7 @@ function run() { if (cache && cache_utils_1.isCacheFeatureAvailable()) { const packageManager = 'default'; const cacheDependencyPath = core.getInput('cache-dependency-path'); - core.info(`Version spec is ${versionSpec}, go version is ${goVersion}`); - yield cache_restore_1.restoreCache(goVersion, packageManager, cacheDependencyPath); + yield cache_restore_1.restoreCache(parseGoVersion(goVersion), packageManager, cacheDependencyPath); } // add problem matchers const matchersPath = path_1.default.join(__dirname, '../..', 'matchers.json'); diff --git a/src/main.ts b/src/main.ts index adc31e4..f783dd4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -62,8 +62,7 @@ export async function run() { if (cache && isCacheFeatureAvailable()) { const packageManager = 'default'; const cacheDependencyPath = core.getInput('cache-dependency-path'); - core.info(`Version spec is ${versionSpec}, go version is ${goVersion}`) - await restoreCache(goVersion, packageManager, cacheDependencyPath); + await restoreCache(parseGoVersion(goVersion), packageManager, cacheDependencyPath); } // add problem matchers