Skip to content

Ability to set desired version of pip, or to not update it at all #901

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

Open
bodgit opened this issue Jun 25, 2024 · 6 comments
Open

Ability to set desired version of pip, or to not update it at all #901

bodgit opened this issue Jun 25, 2024 · 6 comments
Assignees
Labels
feature request New feature or request to improve the current logic

Comments

@bodgit
Copy link

bodgit commented Jun 25, 2024

Description:

It would be useful if there was a way to either set the desired version of pip, or to stop it from being updated to the latest version.

Justification:

I need to make use of the PIP_USE_FEATURE=truststore ability which is currently broken in the latest version 24.1 of pip, but worked fine in 24.0 and earlier.

My Python workflows are now broken until a new version of pip is made available as I can't seemingly stop this action from always updating pip to the latest version.

Are you willing to submit a PR?

Yes.

@bodgit bodgit added feature request New feature or request to improve the current logic needs triage labels Jun 25, 2024
@bodgit
Copy link
Author

bodgit commented Jun 25, 2024

pypa/pip#12779 for the pip bug affecting 24.1.

@aparnajyothi-y
Copy link
Contributor

Hello @bodgit, Thank you for creating this issue and we will look into it :)

@rafal-pomocnik-captivateiq

+1 for the need, currently overcoming by having pip install --upgrade pip==24.0 right after python setup action

@aparnajyothi-y
Copy link
Contributor

Hello Everyone, 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 Mar 19, 2025
@aparnajyothi-y
Copy link
Contributor

Hello @bodgit, Please let us know in case of any concerns/clarifications on the above.

1 similar comment
@aparnajyothi-y
Copy link
Contributor

Hello @bodgit, Please let us know in case of any concerns/clarifications on the above.

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
Projects
None yet
Development

No branches or pull requests

3 participants