Skip to content

Commit

Permalink
use actual version in key
Browse files Browse the repository at this point in the history
  • Loading branch information
e-korolevskii committed Jan 20, 2023
1 parent 89d7939 commit 65f50ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65f50ca

Please sign in to comment.