Skip to content

Commit 2cdf4cc

Browse files
committed
add release to primary key
1 parent 78a2330 commit 2cdf4cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)