From b91ca81f0eb74df7a9388c9dcf644bea3c71fecc Mon Sep 17 00:00:00 2001 From: Ivan Zosimov Date: Wed, 4 May 2022 12:07:39 +0200 Subject: [PATCH] Change the cache key pattern --- dist/setup/index.js | 2 +- src/cache-restore.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 1c7754d..f291357 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -37266,7 +37266,7 @@ exports.restoreCache = (packageManager, cacheDependencyPath) => __awaiter(void 0 if (!fileHash) { throw new Error('Some specified paths were not resolved, unable to cache dependencies.'); } - const primaryKey = `${platform}-go${versionSpec}-${fileHash}`; + const primaryKey = `setup-go-${platform}-go-${versionSpec}-${fileHash}`; core.debug(`primary key is ${primaryKey}`); core.saveState(constants_1.State.CachePrimaryKey, primaryKey); const cacheKey = yield cache.restoreCache(cachePaths, primaryKey); diff --git a/src/cache-restore.ts b/src/cache-restore.ts index 75ab37b..30f9528 100644 --- a/src/cache-restore.ts +++ b/src/cache-restore.ts @@ -29,7 +29,7 @@ export const restoreCache = async ( ); } - const primaryKey = `${platform}-go${versionSpec}-${fileHash}`; + const primaryKey = `setup-go-${platform}-go-${versionSpec}-${fileHash}`; core.debug(`primary key is ${primaryKey}`); core.saveState(State.CachePrimaryKey, primaryKey);