Skip to content
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

Incorrect detection on Debian/Buster #1946

Closed
kinnison opened this issue Jul 15, 2019 · 2 comments · Fixed by #2042
Closed

Incorrect detection on Debian/Buster #1946

kinnison opened this issue Jul 15, 2019 · 2 comments · Fixed by #2042

Comments

@kinnison
Copy link
Contributor

I set about installing rustup onto a Debian/buster system and saw the following:

somniloquy% curl https://sh.rustup.rs/ | sh                                    
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10652  100 10652    0     0  60522      0 --:--:-- --:--:-- --:--:-- 60522
info: downloading installer
Warning: Detected OS X platform older than 10.13
Warning: Not forcing TLS v1.2, this is potentially less secure

Welcome to Rust!

This will download and install the official compiler for the Rust programming 
language, and its package manager, Cargo.
…

Seems we're incorrectly identifying Debian as OS-X somehow?

@Rudi3
Copy link
Contributor

Rudi3 commented Oct 7, 2019

Is it possible that you have an alias or similar to sw_vers?
What is the output of command -v sw_vers? (https://github.com/rust-lang/rustup.rs/blob/9864b0b95e98ccdbe5bde3c5bded2dd95b9d18ad/rustup-init.sh#L410)
To eliminate that, actually using the _arch variable from get_architecture to check for darwin may work. I can't test this on darwin, but I might do a PR to fix that soon.

@kinnison
Copy link
Contributor Author

kinnison commented Oct 7, 2019

Is it possible that you have an alias or similar to sw_vers?

Looks like I had somehow gained a fake sw_vers on my path, possibly for testing something meant for Darwin. This bug is not a bug. Well spotted.

@kinnison kinnison closed this as completed Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants