File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -66141,7 +66141,8 @@ class PoetryCache extends cache_distributor_1.default {
66141
66141
computeKeys() {
66142
66142
return __awaiter(this, void 0, void 0, function* () {
66143
66143
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}`;
66145
66146
const restoreKey = undefined;
66146
66147
return {
66147
66148
primaryKey,
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ class PoetryCache extends CacheDistributor {
46
46
47
47
protected async computeKeys ( ) {
48
48
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 } ` ;
50
51
const restoreKey = undefined ;
51
52
return {
52
53
primaryKey,
You can’t perform that action at this time.
0 commit comments