Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

The action fails if the .python-version (passed into python-version-file input) contains a comment #949

Copy link
Copy link
Closed
@nitrocode

Description

@nitrocode
Issue body actions

Description:
The workflow

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version-file: '.python-version'

The .python-version file

# This file is read by the terraform if var.runtime is unset
3.11

The error

  Version # This file is read by the terraform if var.runtime is unset
  3.11 was not found in the local cache
  Error: The version '# This file is read by the terraform if var.runtime is unset
  3.11' with architecture 'x64' was not found for Ubuntu 22.04.
  The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

Action version:
Latest v5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Repro steps:
See above

Expected behavior:
Ignores the comments and only grabs the version

Actual behavior:
It doesn't ignore the comments

Metadata

Metadata

Labels

feature requestNew feature or request to improve the current logicNew feature or request to improve the current logic

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.