Skip to content

Rustup doesn't check the platform OS version correctly. #2606

@arafangion

Description

@arafangion

I previously mis-reported this at rust-lang/rust#79924
Problem

Steps

  1. Try to install rust using Rustup on an Apple Silicon laptop.

% curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Expected this to install rust, however there are two problems, lets focus on the first one in this ticket: (The other issue was I was expecting it to install the tier-2 platform, but it seems I need the nightly for that, which will be fine).

Warning: Not enforcing strong cipher suites for TLS, this is potentially less secure
Warning: Detected OS X platform older than 10.13
Warning: Not enforcing TLS v1.2, this is potentially less secure

Big Sur is definitely not older than 10.13!

Possible Solution(s)

Correctly parse the output for the OS version, which is as follows:

% sw_vers -productVersion
11.0.1

Notes

Output of rustup --version:
Output of rustup show:

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions