Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github action with just @v2 version not found #1587

Closed
rogerbinns opened this issue Aug 24, 2023 · 2 comments
Closed

Github action with just @v2 version not found #1587

rogerbinns opened this issue Aug 24, 2023 · 2 comments

Comments

@rogerbinns
Copy link

Description

I no longer want to specify the full cibuildwheel version and have to keep updating it, so I tried with only @v2

Before uses: pypa/[email protected]

After: uses: pypa/cibuildwheel@v2

That works for other actions, but attempting an action run gives the error message:

Unable to resolve action `pypa/cibuildwheel@v2`, unable to find version `v2`

Build log

https://github.com/rogerbinns/apsw/actions/runs/5965705676

CI config

https://github.com/rogerbinns/apsw/actions/runs/5965705676/workflow

@henryiii
Copy link
Contributor

You can use v2.15, which will not need updates as often. v2 is just somewhat commonly added by actions1, but is intentionally not supported, since we add and remove platforms (new CPython versions, PyPy releases, muslinux, etc) in "minor" releases, which might surprisingly break you on releases.

If you don't want a pin, or want to have a custom pin, you can use run: pipx run cibuildwheel <args> instead of the action. The main reason for the action is to have the dependabot updates. Internally it just runs pipx run.

See #1517.

Footnotes

  1. GitHub's tool to automate this, used by actions/* repos, is actually considered private, I believe.

@rogerbinns
Copy link
Author

I am fine with the cibuildwheel changes which could break things, but never have for me because my project already supports and is tested on all the things, and I do test builds to test pypi. But I understand why the cibuildwheel project is doing this, so closing the issue. Consider this an upvote for allowing just the major version to be specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants