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:
parent
5e5f66be2b
commit
91b95c4e89
2 changed files with 6 additions and 0 deletions
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
|
@ -98907,6 +98907,9 @@ class PipCache extends cache_distributor_1.default {
|
||||||
({ stdout, stderr } = yield execPromisify('pip cache dir'));
|
({ stdout, stderr } = yield execPromisify('pip cache dir'));
|
||||||
}
|
}
|
||||||
catch (err) {
|
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;
|
exitCode = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,9 @@ class PipCache extends CacheDistributor {
|
||||||
try {
|
try {
|
||||||
({stdout, stderr} = await execPromisify('pip cache dir'));
|
({stdout, stderr} = await execPromisify('pip cache dir'));
|
||||||
} catch (err) {
|
} 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;
|
exitCode = 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue