actions / runner-images

GitHub Actions runner images
MIT License
9.13k stars 2.82k forks source link

Update pip to >=v22.0.3 #9731

Closed Piedone closed 1 week ago

Piedone commented 1 week ago

Tool name

pip

Tool license

MIT

Add or update?

Desired version

22.0.3 or greater

Approximate size

No response

Brief description of tool

Pip, the Python package manager, is installed with v22.0.2 under ubuntu-latest. This has a bug, fixed in pip v22.0.3 in January 2022, that can cause Read the Docs builds to fail, see this other issue. Updating to v22.0.3 or later fixes this issue.

On windows-latest (and also under macos-latest), pip is on v24.0, so this is also about bringing Ubuntu in sync with Windows if it can be upgraded to v24. However, v22.0.3 would suffice too for this particular user-case; nevertheless, I recommend updating pip to v24, i.e. latest.

URL for tool's homepage

https://pip.pypa.io/

Provide a basic test case to validate the tool's functionality.

`pip -V` should show "pip 22.0.3".

Platforms where you need the tool

Runner images where you need the tool

Can this tool be installed during the build?

Yes, with `python -m pip install pip==22.0.3`.

Tool installation time in runtime

About a second on the 4-core default OSS runners.

Are you willing to submit a PR?

I wouldn't venture into it; the change itself should be trivial but I'm not sure about the context.

Alexey-Ayupov commented 1 week ago

Hello @Piedone. We do not pin the pip version (please see installation script). Once the new version is available in the Ubuntu repository, the new version will be available in our Ubuntu images.

If you have any other questions feel free to reach us.