setup-python icon indicating copy to clipboard operation
setup-python copied to clipboard

Broken Poetry caches for PyPy on Windows

Open Parnassius opened this issue 2 years ago • 1 comments

Description: Restoring a Poetry cache for PyPy on Windows leads to Poetry complaining about a broken virtual environment.

Action version: v4

Platform:

  • [ ] Ubuntu
  • [ ] macOS
  • [X] Windows

Runner type:

  • [X] Hosted
  • [ ] Self-hosted

Tools version:

  • pypy-3.7 (7.3.9-3.7.13)
  • pypy-3.8 (7.3.11-3.8.16)
  • pypy-3.9 (7.3.11-3.9.16)

Repro steps:
See this workflow file for a minimal reprodution example: https://github.com/Parnassius/test-actions-setup-python-599/blob/main/.github/workflows/main.yml Running the workflow with a clean cache everything works correctly (log: https://github.com/Parnassius/test-actions-setup-python-599/actions/runs/4085239363) Running the workflow a second time leads to this issue (log: https://github.com/Parnassius/test-actions-setup-python-599/actions/runs/4085261480)

Expected behavior: The cache is restored correctly.

Actual behavior: Poetry complains that the virtual environment is broken and it recreates it with the default python version (currently CPython 3.9.13)

Parnassius avatar Feb 03 '23 15:02 Parnassius

Hello @Parnassius! Thank you for reporting this! We will investigate the issue

e-korolevskii avatar Feb 06 '23 08:02 e-korolevskii