mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
format and rebuild
This commit is contained in:
parent
c49ecc1361
commit
2934810f3d
2 changed files with 10 additions and 2 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -34486,7 +34486,11 @@ class PipCache extends cache_distributor_1.default {
|
||||||
({ stdout: stdout, stderr: stderr } = yield execPromisify('pip cache dir'));
|
({ stdout: stdout, stderr: stderr } = yield execPromisify('pip cache dir'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
({ stdout: stdout, stderr: stderr, exitCode: exitCode } = yield exec.getExecOutput('pip cache dir'));
|
({
|
||||||
|
stdout: stdout,
|
||||||
|
stderr: stderr,
|
||||||
|
exitCode: exitCode
|
||||||
|
} = yield exec.getExecOutput('pip cache dir'));
|
||||||
}
|
}
|
||||||
if (exitCode && stderr) {
|
if (exitCode && stderr) {
|
||||||
throw new Error(`Could not get cache folder path for pip package manager`);
|
throw new Error(`Could not get cache folder path for pip package manager`);
|
||||||
|
|
|
@ -28,7 +28,11 @@ class PipCache extends CacheDistributor {
|
||||||
const execPromisify = utils.promisify(child_process.exec);
|
const execPromisify = utils.promisify(child_process.exec);
|
||||||
({stdout: stdout, stderr: stderr} = await execPromisify('pip cache dir'));
|
({stdout: stdout, stderr: stderr} = await execPromisify('pip cache dir'));
|
||||||
} else {
|
} else {
|
||||||
({stdout: stdout, stderr: stderr, exitCode: exitCode} = await exec.getExecOutput('pip cache dir'));
|
({
|
||||||
|
stdout: stdout,
|
||||||
|
stderr: stderr,
|
||||||
|
exitCode: exitCode
|
||||||
|
} = await exec.getExecOutput('pip cache dir'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exitCode && stderr) {
|
if (exitCode && stderr) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue