add comments

This commit is contained in:
Dmitry Shibanov 2022-02-04 12:20:33 +03:00
parent 218a9edead
commit 098f0d7c5c
2 changed files with 6 additions and 0 deletions

3
dist/setup/index.js vendored
View file

@ -34480,6 +34480,9 @@ class PipCache extends cache_distributor_1.default {
let stdout = '';
let stderr = '';
// Add temporary fix for Windows
// On windows it is necessary to execute through an exec
// because the getExecOutput gives a non zero code or writes to stderr for pip 22.0.2,
// or spawn must be started with the shell option enabled for getExecOutput
// Related issue: https://github.com/actions/setup-python/issues/328
if (utils_1.IS_WINDOWS) {
const execPromisify = util_1.default.promisify(child_process.exec);

View file

@ -23,6 +23,9 @@ class PipCache extends CacheDistributor {
let stderr = '';
// Add temporary fix for Windows
// On windows it is necessary to execute through an exec
// because the getExecOutput gives a non zero code or writes to stderr for pip 22.0.2,
// or spawn must be started with the shell option enabled for getExecOutput
// Related issue: https://github.com/actions/setup-python/issues/328
if (IS_WINDOWS) {
const execPromisify = utils.promisify(child_process.exec);