Skip to content

Commit

Permalink
add a fallback restore-key for poetry cache
Browse files Browse the repository at this point in the history
  • Loading branch information
krishanbhasin-gc committed Apr 21, 2023
1 parent 6db7460 commit 6561396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache-distributions/poetry-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class PoetryCache extends CacheDistributor {
const hash = await glob.hashFiles(this.patterns);
// "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;
const restoreKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-python-${this.pythonVersion}-${this.packageManager}-`;
return {
primaryKey,
restoreKey
Expand Down

0 comments on commit 6561396

Please sign in to comment.