format & build

This commit is contained in:
Evgenii Korolevskii 2023-01-20 09:33:53 +01:00
parent 78738c7252
commit 292b71d345
2 changed files with 5 additions and 5 deletions

4
dist/setup/index.js vendored
View file

@ -65944,8 +65944,8 @@ class PipCache extends cache_distributor_1.default {
} }
computeKeys() { computeKeys() {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const hash = (yield glob.hashFiles(this.cacheDependencyPath)) const hash = (yield glob.hashFiles(this.cacheDependencyPath)) ||
|| (yield glob.hashFiles(this.cacheDependencyBackupPath)); (yield glob.hashFiles(this.cacheDependencyBackupPath));
let primaryKey = ''; let primaryKey = '';
let restoreKey = ''; let restoreKey = '';
if (utils_1.IS_LINUX) { if (utils_1.IS_LINUX) {

View file

@ -10,7 +10,6 @@ import CacheDistributor from './cache-distributor';
import {getLinuxInfo, IS_LINUX, IS_WINDOWS} from '../utils'; import {getLinuxInfo, IS_LINUX, IS_WINDOWS} from '../utils';
class PipCache extends CacheDistributor { class PipCache extends CacheDistributor {
private readonly cacheDependencyBackupPath: string = '**/pyproject.toml'; private readonly cacheDependencyBackupPath: string = '**/pyproject.toml';
constructor( constructor(
@ -59,8 +58,9 @@ class PipCache extends CacheDistributor {
} }
protected async computeKeys() { protected async computeKeys() {
const hash = await glob.hashFiles(this.cacheDependencyPath) const hash =
|| await glob.hashFiles(this.cacheDependencyBackupPath); (await glob.hashFiles(this.cacheDependencyPath)) ||
(await glob.hashFiles(this.cacheDependencyBackupPath));
let primaryKey = ''; let primaryKey = '';
let restoreKey = ''; let restoreKey = '';