Skip to content

Commit 4b197ad

Browse files
committed
poetry: Bump cache primary key
1 parent 881ca6e commit 4b197ad

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/setup/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66141,7 +66141,8 @@ class PoetryCache extends cache_distributor_1.default {
6614166141
computeKeys() {
6614266142
return __awaiter(this, void 0, void 0, function* () {
6614366143
const hash = yield glob.hashFiles(this.patterns);
66144-
const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-python-${this.pythonVersion}-${this.packageManager}-${hash}`;
66144+
// "v2" is here to invalidate old caches of this cache distributor, which were created broken:
66145+
const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-python-${this.pythonVersion}-${this.packageManager}-v2-${hash}`;
6614566146
const restoreKey = undefined;
6614666147
return {
6614766148
primaryKey,

src/cache-distributions/poetry-cache.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ class PoetryCache extends CacheDistributor {
4646

4747
protected async computeKeys() {
4848
const hash = await glob.hashFiles(this.patterns);
49-
const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-python-${this.pythonVersion}-${this.packageManager}-${hash}`;
49+
// "v2" is here to invalidate old caches of this cache distributor, which were created broken:
50+
const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-python-${this.pythonVersion}-${this.packageManager}-v2-${hash}`;
5051
const restoreKey = undefined;
5152
return {
5253
primaryKey,

0 commit comments

Comments
 (0)