-
Notifications
You must be signed in to change notification settings - Fork 893
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
Improve OS detection of rustup-init.sh #2042
Conversation
Given I discovered that #1946 was a bad issue (my fault) I'm not sure we need this. |
Maybe not, but you may not wan't to solely rely on the existence of |
Fair, I'll give this a bit more of a ponder. Belt and braces can't hurt I suppose. |
I'm not sure I like the amount of code churn needed to have the global |
I remain uncomfortable with this change. If a reduced scope patch is produced I'll consider it, otherwise I'll close this PR soon. Thank you for caring enough to try and fix this. |
its pretty trivial really. _arch -> downloader -> check_help_for. Its one code path, one variable. |
Yes, I could just pass it through like you suggested. I'll try that soon. |
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.
This looks plausible. I'm not in a position to fully review the change right now, but I shall endeavour to do so soon. My gut feeling says this could be merged now.
I apologise for the delay, my December was crazy and then I was unwell. 👍 |
I've rebased your branch. Assuming this passes CI, I'll merge. |
Improve OS detection of rustup-init.sh
An attempt to fix #1946.
Checks if
$ARCH
contains"darwin"
before checking the the existence ofsw_vers
and the software version of an alleged darwin os.