-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Strange fallback RIDs #23390
Comments
Building a self-contained app for RID
This is not enough - there should at the very least be a Compare this to building an app for RID |
For context - the original discussion which found this is here: dotnet/runtime#63338. |
Thanks for creating this issue! We believe this issue is related to NuGet tooling, which is maintained by the NuGet team. Thus, we closed this one and encourage you to raise this issue in the NuGet repository instead. Don’t forget to check out NuGet’s contributing guide before submitting an issue! If you believe this issue was closed out of error, please comment to let us know. Happy Coding! |
Hi @vitek-karas , this seems not a NuGet issue. May I know if I could remove the "Area-NuGet" label and reopen it? Thanks! |
It's possible this is "from" NuGet (SDK uses NuGet assemblies to deal with some of the complexities around RID graph), but it's as well possible it's not there - we need somebody to investigate. |
I think this problem exists pretty much with any RID, it's just not as obvious.
Note that it doesn't have fallback paths for The bug is very likely here: sdk/src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs Lines 393 to 399 in c201288
This code filters the original RID graph to only those nodes which mention the RID for which the build is running. But that doesn't produce a complete RID graph, it produces one which works for those nodes which are included. But it will NOT work for nodes which are mentioned, but not listed explicitly, like We would have to either:
The former approach will produce RID graphs which are going to be just slightly larger than today, but it's a bit fragile. There's also the question of how to reconcile this with dotnet/designs#260. |
FYI @agocke |
Describe the bug
I recently install dotnet on manjaro, a arch like distro, and noticed I have issues running unless I specify runtime. While digging a little with the people on the runtime repo we noticed strange behavior related to the fallback RID. It was suggested I wrote a ticket here as well, as it looked like it was related to the SDK(?)
Below is COREHOST_TRACEFILES
default.txt
arch-x64.txt
linux-x64.txt
If you search for "fallback graph" you will see that the graph is really small for default and arch-x64, while linux-x64 seems to contain all distros(?)
It is my understanding that the fallback graph for arch-x64 should also contain a
linux-x64 => [ ... ]
which is missing.Any idea what might have caused it?
To Reproduce
Run
COREHOST_TRACE=1 COREHOST_TRACEFILE=linux-x64.txt dotnet run -r linux-x64
andCOREHOST_TRACE=1 COREHOST_TRACEFILE=arch-x64.txt dotnet run -r arch-x64
and compare the results in the corefile.Further technical details
The text was updated successfully, but these errors were encountered: