Change the cache key pattern

pull/228/head
Ivan Zosimov 3 years ago
parent 2d848c0e6a
commit b91ca81f0e

@ -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);

@ -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);

Loading…
Cancel
Save