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

Alternative version matchers #208

Open
Lonami opened this issue Jul 24, 2020 · 0 comments
Open

Alternative version matchers #208

Lonami opened this issue Jul 24, 2020 · 0 comments

Comments

@Lonami
Copy link
Contributor

Lonami commented Jul 24, 2020

Split off #206. Currently a "release info" can only match on a specific version names:

https://github.com/DarkEld3r/os_info/blob/f9088845198fa9951f6d97a7bb35d035046f707b/os_info/src/linux/file_release.rs#L72-L76

However, the same file may be used by different operative systems. Not only will os_type be wrong (it can just be a guess), but other systems may use different key names. In the case of Arch Linux, the version is in BUILD_ID, not VERSION_ID.

This issue is here to discuss the best way to handle stuff like this.

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

No branches or pull requests

1 participant