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

Skip to content

Log statement omits default Python version file #428

Closed
@Kurt-von-Laven

Description

@Kurt-von-Laven

Description:
When neither python-version nor python-version-file is specified, the setup-python correctly defaults to reading the Python version from .python-version as documented. However, it logs: Resolved as x.y.z.

Action version:
v4.0.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
All

Repro steps:

  1. Create a .python-version file containing 3.10.4.

  2. Add the following to your workflow:

    - name: Set up Python based on .python-version file.
      uses: actions/[email protected]
  3. Run your workflow.

  4. Examine the logs.

Expected behavior:
I expected the logs to include: Resolved .python-version as 3.10.4.

Actual behavior:
The pertinent log statement says: Resolved as 3.10.4.

Metadata

Metadata

Assignees

No one assigned

    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