镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Closed

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

  1. dmitry-shibanov commented on Aug 3, 2023

    @dmitry-shibanov
    Contributor

    Hello @Harmon758. Thank you for your report. We will take a look at the issue.

  2. dmitry-shibanov commented on Sep 7, 2023

    @dmitry-shibanov
    Contributor

    Hello @Harmon758. Could you please try to use actions/setup-python@main?

  3. dmitry-shibanov commented on Oct 10, 2023

    @dmitry-shibanov
    Contributor

    Hello @Harmon758. The new version of the action was released and the major tag was updated. For now I'm going to close the issue.

  4. Harmon758 commented on Oct 21, 2023

    @Harmon758
    Author

    Apologies for the delay in testing out the fix.
    I can confirm now though that #726 has resolved the issue after updating to v4.7.1.
    Thank you!

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