8000 Have a way to pin pip versions · Issue #521 · actions/setup-python · GitHub
[go: up one dir, main page]

Skip to content

Have a way to pin pip versions #521

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

Closed
twz123 opened this issue Oct 17, 2022 · 6 comments
Closed

Have a way to pin pip versions #521

twz123 opened this issue Oct 17, 2022 · 6 comments
Assignees
Labels
feature request New feature or request to improve the current logic needs eyes

Comments

@twz123
Copy link
twz123 commented Oct 17, 2022

Description:
Pip is currently always updated to the latest version. This happens somewhere in the setup scripts in actions/python-versions. As far as I can tell, there's no way to skip that, or even better, pin pip to a specific version. Albeit one can downgrade pip again in a subsequent step, this seems like something to have as a proper feature: It would be cool if there's some means of doing this, e.g. via a new optional input parameter, or an OS environment variable.

Justification:
The recent pip 22.3 update from 2022-10-15 broke some builds. A manual downgrade to pip 22.2.2 solved it. Upgrading pip via separate PRs seems desirable for some folks (e.g. for me 🙂).

Are you willing to submit a PR?
Yes.

@twz123 twz123 added feature request New feature or request to improve the current logic needs triage labels Oct 17, 2022
@dmitry-shibanov
Copy link
Contributor

Hello @twz123. Thank you for your feature request. We'll investigate it.

@asottile-sentry
Copy link
Contributor

one way to do this is to use the PIP_CONSTRAINT environment variable

8000

@aparnajyothi-y
Copy link
Contributor

Hello @twz123, Thank you for your feature request. After careful consideration, An option to set a specific pip version can be implemented as part of the future enhancements, but it will be an opt-in feature. However, we will not allow users to completely prevent pip from updating. By default, we will always support the latest version of pip. If users choose to use an older version, they will be responsible for any breaking changes or security issues that may arise, and we will make this clear in our documentation.

We hope this solution strikes a balance between offering flexibility and maintaining the stability of workflows. We appreciate your understanding and encourage you to reach out if you have any further questions!

@aparnajyothi-y aparnajyothi-y self-assigned this Apr 8, 2025
@aparnajyothi-y
Copy link
Contributor

Hello @twz123, Please let us know if you have any concerns/clarifications on the above

1 similar comment
@aparnajyothi-y
Copy link
Contributor

Hello @twz123, Please let us know if you have any concerns/clarifications on the above

@aparnajyothi-y
Copy link
Contributor

Hello @twz123, We are proceeding to close the issue as we didn't hear anything from a long time. Please feel free to reach us in case of any concerns/clarifications :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request to improve the current logic needs eyes
Projects
None yet
Development

No branches or pull requests

5 participants
0