-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Remove distros versions calculation #100580
Conversation
6d27384
to
fd57706
Compare
fd57706
to
172e94b
Compare
@tmds, @elinor-fung, I was thinking something along these lines. It entails additional work such as:
This way, distro maintainers will be free to use their preferred convention without needing to maintain those details in dotnet infra. |
For non-portable Linux build, I think we should keep the logic that determines a rid based on |
That will defeat its purpose. Previous discussion was to remove these cases dotnet/arcade#14595 (comment). I think either we should make it consistently agnostic of distro info for all platforms, or keep maintaining it (and keep accepting |
With that comment I meant: remove the special cases for specific Linux distros, like Oracle Linux. I don't think we should force every distro maintainer to "choose" a rid and specify it using |
Alright, you mean by using the same default for all distros:
You named it |
cc @dotnet/distro-maintainers |
@omajid, in case it wasn't obvious, this is dead code from VMR's perspective (TargetRid in dotnet/dotnet repo is always set which maps to --outputrid in this repo). Since .NET 8, runtime repo is pretty much agnostic of nonportable RIDs. This PR is a followup cleanup to avoid future "Add support for ___ linux" type of PRs. |
As there's a change for tizen, cc: @dotnet/samsung. Other than that, the fact that the VMR already provides a more comprehensive explicit feature here and that you're the maintainer for the sunOS-derived RIDs, this looks good to me. I'll approve, but I'll wait a few days to merge in case any of our stakeholders have an issue that they want to raise. |
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.
Thank you.
@am11 - It doesn't look like this has been applied yet. This should be applied to https://github.com/dotnet/sdk/blob/main/src/SourceBuild/content/build.sh. Note that this change has surfaced an issue in how we reference the produced output from the build: dotnet/sdk#40843. So once it's exposed as a build script parameter, we'd need to flow the desired RID into that from the build pipeline. I think this would only need to be done for Alpine as its version changes with each revision. |
Remove distro version calculation for non-portable builds. The user can specify the desired value via
--outputrid
option (which is already used by source-build).