-
Notifications
You must be signed in to change notification settings - Fork 86
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
Bug: Publish optimization uses a hardcoded runtime linux-x64 again. #136
Comments
I tweaked my test a bit (added multi-targeting to the project and updated the aws json lib) so it works with the new library, and as expected, got a failure for the new version, but not for the old one: |
These are the changes that I made to the test: bd8b906 |
Thanks for that @derwasp |
Sorry this change messed up your packaging. I made the change for 3.1 to use linux-x64 because it seemed like that is what the .NET team at Microsoft has been trying to push people to use and using the I would rather keep the linux-x64 but I wonder if I updated the deployment code to inspect the |
Hey @normj, thanks for the response. First of all we can look at
Then we can also look at this and see which RHEL RPM repos the distro is using, and it says that it's version 7:
And then we can look here and see which version of Red Hat the distro is based on:
And as you can see, it appears to be Red Hat 7. As for the suggestions to use As I can see folks from MS are actively maintaining the hierarchy list in the runtime repository. And it seems like they accept pullrequests for new/updated RIDs. Maybe this should be the way forward? Despite all this, I am open to other options as long as they will fix the issue in question. It's just that I don't see a good reason not to use the I am by no means an expert in Linux, but I am just trying to get to the bottom of it and understand how things work. Regardless of the discussion, the idea you are suggesting (allow to override the RID) sounds like a good one anyway, so I'd say let's do it. |
We have noticed this issue has not received attention in 1 year. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue. |
Description
I fixed this issue 2 years ago(#26), and now it seems like it's back. Starting with #112 the
linux-x64
moniker is used instead of therhel.7.2-x64
. Whilerhel.7.2-x64
was not the perfect choice for the runtime, internet says that rhel is in general quite compatible with amazon linux. And that rhel7 and amazon linux 2 are pretty close. And this mention was in the code, but was removed here.This time the bug is pretty sneaky, as for me everything broke after I updated to netcoreapp3.1. Now there's a switch that selects the moniker here and it works fine for the previous versions, while for netcoreapp3.1 (well anything other than 1.0, 2.0 and 2.1) it selects
linux-x64
and my app stops working.The issue is the same for me as it was before. But this time not only for me, you can see @boemekeld posting about it here and here.
My experience shows that most of the time
linux-x64
means ubuntu/debian distros and not rhel/centos/amazonlinux. Static linking will probably solve the issue, but so far I don't see library developers doing it (and they have reasons for this). So in my eyes, it's still reasonable to do best effort compatibility instead of asking users to build workarounds like @ashishdhingra suggested in his response to @boemekeld.@boemekeld also said that rhel worked just fine for him. I didn't re-test it, but I imagine that this would be the case, like with the old version.
@normj what was the reason to change the behavior? Can you please make it work again?
Reproduction Steps
See @boemekeld's ticket here.
Logs
See @boemekeld's ticket here.
Environment
Resolution
Well, I can remove the switch, like so: #137
This is a 🐛 bug-report
The text was updated successfully, but these errors were encountered: