Skip to content

Commit

Permalink
poetry: Bump cache primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
oranav committed Dec 24, 2022
1 parent 881ca6e commit 92163f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cache-distributions/poetry-cache.ts
Expand Up @@ -46,7 +46,8 @@ class PoetryCache extends CacheDistributor {

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

0 comments on commit 92163f3

Please sign in to comment.