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

Recognise Arch Linux when using file release #206

Merged
merged 1 commit into from
Jul 23, 2020
Merged

Recognise Arch Linux when using file release #206

merged 1 commit into from
Jul 23, 2020

Conversation

Lonami
Copy link
Contributor

@Lonami Lonami commented Jul 22, 2020

It (unfortunately) uses the same path as Oracle Linux:

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

However just detecting the type name helps avoid it being mis-assigned (I guess ideally we would do this for all other types but I only have access to an Arch machine at the moment).

I would also make it detect BUILD_ID (instead of VERSION_ID), maybe with some form of "alternative matcher", but there are other issues with that (#207).

@Lonami Lonami requested a review from stanislav-tkach as a code owner July 22, 2020 18:36
Copy link
Owner

@stanislav-tkach stanislav-tkach left a comment

Choose a reason for hiding this comment

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

Thanks!

@stanislav-tkach stanislav-tkach merged commit 2a2137b into stanislav-tkach:master Jul 23, 2020
@Lonami
Copy link
Contributor Author

Lonami commented Jul 23, 2020

What are your thoughts on having an alternative matcher for the version? I'm afraid we may need N of them (for other distros with other version names) and not sure if vectors work in constants. Should I make an issue to discuss this?

@Lonami Lonami deleted the arch-file-release branch July 23, 2020 16:11
@stanislav-tkach
Copy link
Owner

@Lonami Yes, I think it would be better to have a separate issue to discuss 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

Successfully merging this pull request may close these issues.

2 participants