-
Notifications
You must be signed in to change notification settings - Fork 507
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
Fails on Rocky Linux distro, missing lsb_release
#861
Comments
Hello @garyo, Thank you for creating this issue and we will look into it :) |
I'm having the same problem with v5.1.0 on GitHub hosted - uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies Logs:
|
Hello @garyo, would you mind trying to install lsb-release to see if it addresses the problem you're experiencing? Here are the commands for updating the apt package list and installing lsb-release:
|
It all works fine if that package is installed. It does not work on the image I mentioned (aswf/ci-base:2023) which does not install that by default. Images used for CI builds tend to be quite minimal to save space and speed up startup. Running |
This also happens on Alpine 3.17.3, Debian 11.5-slim, and Red Hat Enterprise Linux 8.9 (Ootpa). |
Apparently this is only a problem when using
Lines 169 to 172 in 82c7e63
|
Hello @garyo, Can you consider using the actions/cache action to cache dependencies and speed up your workflows. In the case of Python, it's often used to cache pip packages. The key for the cache is often generated using the hash of requirements.txt (or other dependency files), and the Python version, not lsb_release. Here is an example:
This will cache pip dependencies and reuse them in subsequent runs, reducing the time it takes to install packages. |
Sure, I understand what |
#890 seems related. Will try using |
Hello @garyo, we are not planning to alter the usage of lsb_release for cache:pip. The provided solution utilizing actions/cache ensures pip dependencies are cached and reused in subsequent runs, thereby minimizing package installation time. |
Description:
The following stanza fails on a CentOS 7 or Rocky Linux 8 Docker image in github, specifically
aswf/ci-base:2023
:Error log from build action:
Action version:
v5
Platform:
aswf/ci-base:2023
Runner type:
Tools version:
3.11
Repro steps:
See above
Expected behavior:
Not to fail; install Python
Actual behavior:
Action fails, see above
The text was updated successfully, but these errors were encountered: