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

fix(linux): add distribution name before version #1426

Closed
wants to merge 1 commit into from

Conversation

ayn2op
Copy link

@ayn2op ayn2op commented Dec 11, 2024

Closes #1420

@ayn2op ayn2op changed the title fix: add distribution name before version fix(linux): add distribution name before version Dec 11, 2024
@GuillaumeGomez
Copy link
Owner

GuillaumeGomez commented Dec 11, 2024

Is it ok with you @dtolnay ?

Copy link
Contributor

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • This is going to produce strings like "Android Pixel 9 15" on Android which is a regression from the current behavior.

  • Please update the examples in the public long_os_version function in src/common/system.rs.

  • Some distributions already include "Linux" in NAME in /etc/os-release. For example on Fedora this would return "Linux Fedora Linux 40" which is maybe more confusing than the current behavior. Consider filtering for names that already contain Linux.

@ayn2op ayn2op closed this Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linux long_os_version
3 participants