mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
format & build
This commit is contained in:
parent
78738c7252
commit
292b71d345
2 changed files with 5 additions and 5 deletions
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -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) {
|
||||
|
|
|
@ -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 = '';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue