Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pythonLocation no longer being set in v4 #537

@shadycuz

Description

@shadycuz

Description:
When upgrading from setup-python@v3 to setup-python@v4, other jobs fail because env.pythonLocation is no longer being set.

Action version:
v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
all?

Repro steps:
Here is the PR. Here is the failed build.

Expected behavior:
python location to be available.

Actual behavior:
It appears to be empty.

Here is the code that now fails with v4.

- name: Set up Python
   uses: actions/setup-python@v4

- name: Python Cache
   uses: actions/cache@v3
     with:
       path: ${{ env.pythonLocation }}
       key: ${{ env.pythonLocation }}-${{ hashFiles('tests/requirements.txt') }}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions