1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2025-02-27 06:37:26 +00:00

Add comments

This commit is contained in:
Priyagupta108 2025-02-25 14:40:22 +05:30
parent 5e5f66be2b
commit 91b95c4e89
2 changed files with 6 additions and 0 deletions

3
dist/setup/index.js vendored
View file

@ -98907,6 +98907,9 @@ class PipCache extends cache_distributor_1.default {
({ stdout, stderr } = yield execPromisify('pip cache dir'));
}
catch (err) {
// Pip outputs warnings to stderr (e.g., --no-python-version-warning flag deprecation warning), causing false failure detection
// Related issue: https://github.com/actions/setup-python/issues/1034
// If an error occurs, set exitCode to 1 to indicate failure
exitCode = 1;
}
}

View file

@ -35,6 +35,9 @@ class PipCache extends CacheDistributor {
try {
({stdout, stderr} = await execPromisify('pip cache dir'));
} catch (err) {
// Pip outputs warnings to stderr (e.g., --no-python-version-warning flag deprecation warning), causing false failure detection
// Related issue: https://github.com/actions/setup-python/issues/1034
// If an error occurs, set exitCode to 1 to indicate failure
exitCode = 1;
}
} else {