Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fix for Windows caching of pip #332

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).

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