Skip to content

Conversation

@dmitry-shibanov
Copy link
Contributor

Description:
In scope of this pull request we add temporary fix for Windows caching.
Related issue: #328

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

// Related issue: https://github.com/actions/setup-python/issues/328
if (IS_WINDOWS) {
const execPromisify = utils.promisify(child_process.exec);
({stdout: stdout, stderr: stderr} = await execPromisify('pip cache dir'));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When new pip versions get released, this call outputs the upgrade hint to stderr, which in turn gets misinterpreted as an error in the conditional below, causing this action to fail.

See #1034 (comment).

tdfacer pushed a commit to ifit/setup-python that referenced this pull request Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants