-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 macOS and Windows installers when rust-docs is not available. #109880
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
For rustup IIRC we have the fallback mechanism where we pull in a Linux rust-docs, but I guess that's not really possible for pkg (on apple) or msi (on windows) installers, at least without restructuring CI so that they're built after Linux dist completes? Does this handle the same problem for our windows installers? |
The Windows distributions all include rust-docs (including aarch64-pc-windows-msvc, which btw installs in the wrong directory, x86 instead of ARM). So for now, at least, they shouldn't need any modification. I do not know if the msi fails if the docs are not available. I can look into that if you want. |
Hm, ok. We may want to disable docs there soon so if it's not too hard, let's check on that, but r=me other than that. |
OK, I pushed an update that makes the MSI installer also handle the case when rust-docs is not built. I tested by running the installer built with and without docs. |
Thanks! @bors r+ |
⌛ Testing commit 6b57a34 with merge 68e67609ffe004649408b3b6ebf8aee00b1a1a70... |
💔 Test failed - checks-actions |
@bors retry crates.io network blip |
⌛ Testing commit 6b57a34 with merge 1d1f769d3900238eca078ba2c8dbca127fd7170e... |
💔 Test failed - checks-actions |
@bors retry crates.io network blip |
☀️ Test successful - checks-actions |
Finished benchmarking commit (749b487): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
|
This fixes the macOS
.pkg
and Windows.msi
installers to work when rust-docs is not available. If the rust-docs component is not built, then the installer would fail. This adds the rust-docs component to the filtering mechanism so that the rust-docs line of the distribution definition aren't included.I tested installing and uninstalling both with and without the rust-docs component available.
This happens on the aarch64-apple-darwin distribution provided by rust-lang since we currently disable the rust-docs component due to long build times. An alternate solution would be to just enable the rust-docs component on aarch64-apple-darwin since there are faster build systems.
Fixes #109877