Skip to content

Commit 92163f3

Browse files
committed
poetry: Bump cache primary key
1 parent 881ca6e commit 92163f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)