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

Support os-release standard #890

Open
1 of 5 tasks
aaroncameron-wk opened this issue Jun 10, 2024 · 1 comment
Open
1 of 5 tasks

Support os-release standard #890

aaroncameron-wk opened this issue Jun 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@aaroncameron-wk
Copy link

aaroncameron-wk commented Jun 10, 2024

Description:
When PipCache attempts to generate pip cache keys and invokes getLinuxInfo while running on Amazon Linux 2023, the following error occurs:

Error: Unable to locate executable file: lsb_release. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

This is also triggered when attempting to report errors when searching for Python versions, so this action fails to even give helpful error information when a missing lsb_release isn't even the issue.

This is caused by the dependency on lsb_release, which is not available on Amazon Linux 2023:

AL2023 doesn't ship with the lsb_release command, and doesn't include the system-lsb-core package. Software should complete the transition to the os-release standard to maintain compatibility with Amazon Linux and other major Linux distributions.

An alternative is the os-release standard. Using this, at least as a fallback, would go a long way in improving the limited support of AL2023.

Action version:
5.1.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
N/A

Repro steps:
Run this action on an Amazon Linux 2023 self-hosted runner with cache: 'pip'.

Expected behavior:
Action behaves as expected with pip dependencies cached.

Actual behavior:

Error: Unable to locate executable file: lsb_release. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

@aaroncameron-wk aaroncameron-wk added bug Something isn't working needs triage labels Jun 10, 2024
@aaroncameron-wk aaroncameron-wk changed the title pip cache does not work on Amazon Linux 2023 Support os-release standard Jun 10, 2024
@aparnajyothi-y
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants