diff --git a/dist/setup/index.js b/dist/setup/index.js index 61712724..c788fd64 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -65944,8 +65944,8 @@ class PipCache extends cache_distributor_1.default { } computeKeys() { return __awaiter(this, void 0, void 0, function* () { - const hash = (yield glob.hashFiles(this.cacheDependencyPath)) - || (yield glob.hashFiles(this.cacheDependencyBackupPath)); + const hash = (yield glob.hashFiles(this.cacheDependencyPath)) || + (yield glob.hashFiles(this.cacheDependencyBackupPath)); let primaryKey = ''; let restoreKey = ''; if (utils_1.IS_LINUX) { diff --git a/src/cache-distributions/pip-cache.ts b/src/cache-distributions/pip-cache.ts index b48c1075..554d18d7 100644 --- a/src/cache-distributions/pip-cache.ts +++ b/src/cache-distributions/pip-cache.ts @@ -10,7 +10,6 @@ import CacheDistributor from './cache-distributor'; import {getLinuxInfo, IS_LINUX, IS_WINDOWS} from '../utils'; class PipCache extends CacheDistributor { - private readonly cacheDependencyBackupPath: string = '**/pyproject.toml'; constructor( @@ -59,8 +58,9 @@ class PipCache extends CacheDistributor { } protected async computeKeys() { - const hash = await glob.hashFiles(this.cacheDependencyPath) - || await glob.hashFiles(this.cacheDependencyBackupPath); + const hash = + (await glob.hashFiles(this.cacheDependencyPath)) || + (await glob.hashFiles(this.cacheDependencyBackupPath)); let primaryKey = ''; let restoreKey = '';