fix: add arch to cache key (#896)

* fix: add arch to cache key

* test: update tests accordingly
This commit is contained in:
Zxilly
2024-08-08 04:12:32 +08:00
committed by GitHub
parent 036a523674
commit 80b49d3ed8
5 changed files with 15 additions and 15 deletions

View File

@ -32,7 +32,7 @@ class PipenvCache extends CacheDistributor {
protected async computeKeys() {
const hash = await glob.hashFiles(this.patterns);
const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-python-${this.pythonVersion}-${this.packageManager}-${hash}`;
const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${process.arch}-python-${this.pythonVersion}-${this.packageManager}-${hash}`;
const restoreKey = undefined;
return {
primaryKey,