-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fix RHEL platform autodetection #383
Conversation
Thanks! Have you thought about just adding |
I thought about it but this would then be a breaking change as some users might have already hardcoded Another option would be to have both for a while and then deprecate the old one. Your choice. |
Yeah, I meant keeping |
Ah yeah, you said adding not replacing. I'll change it then and add |
* add 7.x versions explicitly to distro table * remove rhel special casing.
Thanks! I simplified it a bit and removed the extra logic. |
Ah, I was under the impression that the version needs to resolve to only a single digit for the major version but apparently some fuzzy matching is happening in the background 🙃 Thanks for cleaning up and merging so quickly! |
r-lib/pak#610
Can likely be done more elegantly but should go into the right direction and move things forward.
RHEL is reported as follows
Given that all RH-related sysdep mappings are referenced as
"redhat"
, rewriting the respective internal mappings made most sense to me.This change results in the following
Given that
"redhat-8"
and"redhat-9"
already work as desired when handed over manually, this change should align the platform parsing for the moment.There might be other parts that need to be touched in addition, you might know best.