poetry: Bump cache primary key

This commit is contained in:
Oran Avraham 2022-12-24 16:29:40 +02:00
parent 881ca6e477
commit b69ad351aa
No known key found for this signature in database
GPG key ID: 93535690AF9131E5
3 changed files with 8 additions and 2 deletions

3
dist/setup/index.js vendored
View file

@ -66141,7 +66141,8 @@ class PoetryCache extends cache_distributor_1.default {
computeKeys() {
return __awaiter(this, void 0, void 0, function* () {
const hash = yield 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,