-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
OSDescription.Linux: return a user-friendly name based on /etc/os-release. #83976
Conversation
c21fce1
to
8451453
Compare
src/libraries/Common/src/Interop/Linux/os-release/Interop.OSReleaseFile.cs
Outdated
Show resolved
Hide resolved
Should a fallback based on |
It can be added in a follow-up PR. |
I was thinking about Alpine here. |
Though it doesn't use systemd, Alpine does include an |
ok, I've removed it. |
Tagging subscribers to this area: @dotnet/interop-contrib Issue DetailsFixes #83287. @am11 @tannergooding @danmoseley @stephentoub ptal. cc @richlander
|
Thanks for taking this on. |
src/libraries/Common/src/Interop/Linux/os-release/Interop.OSReleaseFile.cs
Show resolved
Hide resolved
CI looks good for this. This is up for review. |
src/libraries/Common/src/Interop/Linux/os-release/Interop.OSReleaseFile.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/src/Interop/Linux/os-release/Interop.OSReleaseFile.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/src/Interop/Linux/os-release/Interop.OSReleaseFile.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/src/Interop/Linux/os-release/Interop.OSReleaseFile.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Runtime.InteropServices.RuntimeInformation/tests/DescriptionNameTests.cs
Show resolved
Hide resolved
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Is this good to merge? |
} | ||
} | ||
|
||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I'd find this easier to read if this were moved up to above the static local function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Fixes #83287.
@am11 @tannergooding @danmoseley @stephentoub ptal.
cc @richlander