Skip to content

Commit 031101b

Browse files
authored
Merge pull request #3 from panticmilos/v-mpantic/expand-primary-key-python
V mpantic/expand primary key python
2 parents 78a2330 + e16bc7c commit 031101b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/setup/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64430,8 +64430,8 @@ class PipCache extends cache_distributor_1.default {
6443064430
computeKeys() {
6443164431
return __awaiter(this, void 0, void 0, function* () {
6443264432
const hash = yield glob.hashFiles(this.cacheDependencyPath);
64433-
const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-python-${this.pythonVersion}-${this.packageManager}-${hash}`;
64434-
const restoreKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-python-${this.pythonVersion}-${this.packageManager}`;
64433+
const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${os_1.default.release()}-python-${this.pythonVersion}-${this.packageManager}-${hash}`;
64434+
const restoreKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${os_1.default.release()}-python-${this.pythonVersion}-${this.packageManager}`;
6443564435
return {
6443664436
primaryKey,
6443764437
restoreKey: [restoreKey]

src/cache-distributions/pip-cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class PipCache extends CacheDistributor {
5757

5858
protected async computeKeys() {
5959
const hash = await glob.hashFiles(this.cacheDependencyPath);
60-
const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-python-${this.pythonVersion}-${this.packageManager}-${hash}`;
61-
const restoreKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-python-${this.pythonVersion}-${this.packageManager}`;
60+
const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${os.release()}-python-${this.pythonVersion}-${this.packageManager}-${hash}`;
61+
const restoreKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${os.release()}-python-${this.pythonVersion}-${this.packageManager}`;
6262

6363
return {
6464
primaryKey,

0 commit comments

Comments
 (0)