Skip to content

Versions prefixed with == fail to be found when not in the local cache #711

Description

@Harmon758

Description:
When a version is prefixed with == and is not found in the local cache, it fails to be found for downloading.

I encountered this while specifying the version through project.requires-python in pyproject.toml.
I'm not sure if python-version also has this issue, but I presume so.

Action version:
v4.7.0

Platforms:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
Every Python version not in the local cache

Repro steps:
I was originally using python-version: ['3.10.10'], which successfully downloads.
Upon changing to use python-version-file: pyproject.toml with requires-python = "==3.10.10" (under [project]) in pyproject.toml, the version fails to be found.

Additionally, I confirmed that this is only an issue when the version is not found in the local cache, as removing the patch version in pyproject.toml and changing it to requires-python = "==3.10" successfully installs the version in the local cache.

Expected behavior:
The version is successfully downloaded and installed

Actual behavior:
The version fails to be found

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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