Repository navigation
test: probe stable cargo through rustup - #17666
Merged
Merged
Conversation
macOS runner image now uses Homebrew's rustup proxies, which is under `brew --prefix rustup` rather than `$CARGO_HOME`. The homebrew toolchain is available via `$PATH` but `requires_rustup_stable` assumes it under $`CARGO_HOME` Let's just use `rustup run stable cargo --version` to find the stable cargo instead. See also * actions/runner-images#14990 * Homebrew/homebrew-core#283934 * And I don't know why they feel so freely making this change ;) ``` error: custom attribute panicked --> tests/testsuite/global_cache_tracker.rs:1966:1 | 1966 | #[cargo_test(requires_rustup_stable)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: message: expected command `/Users/runner/.cargo/bin/cargo` to be somewhere in PATH: No such file or directory (os error 2) error: custom attribute panicked --> tests/testsuite/global_cache_tracker.rs:2051:1 | 2051 | #[cargo_test(requires_rustup_stable)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: message: expected command `/Users/runner/.cargo/bin/cargo` to be somewhere in PATH: No such file or directory (os error 2) ```
Collaborator
|
r? @epage rustbot has assigned @epage. Use Why was this reviewer chosen?The reviewer was selected based on:
|
Member
Author
|
r? Muscraft |
Muscraft
approved these changes
Oct 30, 2026
Muscraft
enabled auto-merge
October 30, 2026 02:25
rust-bors Bot
pushed a commit
to rust-lang/rust
that referenced
this pull request
Nov 4, 2026
Update cargo submodule 13 commits in 31d3246e0e8d3a80d4a90b54aa48ff180adb408b..3c747ea3ead23951c1b43a5edfcbdb449135ddeb 2026-10-27 13:54:39 +0000 to 2026-11-03 21:25:31 +0000 - Link to `cargo search` result's crates.io pages (rust-lang/cargo#17668) - Clean `/out` dir before compilation (rust-lang/cargo#17675) - Allow `uncommon_codepoints` in confusable test (rust-lang/cargo#17676) - test: Update https certificate failed messages (rust-lang/cargo#17679) - chore(deps): update rust-lang/crates-io-auth-action action to v1.0.6 (rust-lang/cargo#17670) - chore(deps): update actions/deploy-pages action to v5.0.1 (rust-lang/cargo#17669) - Fix manifest schema generation: `TomlOptLevel` and `StringOrVec` (rust-lang/cargo#17660) - remove deprecated tempdir (rust-lang/cargo#17663) - chore(ci): remove Windows rustup PATH workaround (rust-lang/cargo#17667) - test: probe stable cargo through rustup (rust-lang/cargo#17666) - Update outdated registry function comments (rust-lang/cargo#17664) - perf(windows): Delay-load system DLLs that most commands don't use (rust-lang/cargo#17623) - Suppress `dead_code_pub_in_binary` for library test units (rust-lang/cargo#17608)
weihanglo
added a commit
that referenced
this pull request
Nov 5, 2026
RalfJung
pushed a commit
to JoJoDeveloping/miri
that referenced
this pull request
Nov 8, 2026
Update cargo submodule 13 commits in 31d3246e0e8d3a80d4a90b54aa48ff180adb408b..3c747ea3ead23951c1b43a5edfcbdb449135ddeb 2026-10-27 13:54:39 +0000 to 2026-11-03 21:25:31 +0000 - Link to `cargo search` result's crates.io pages (rust-lang/cargo#17668) - Clean `/out` dir before compilation (rust-lang/cargo#17675) - Allow `uncommon_codepoints` in confusable test (rust-lang/cargo#17676) - test: Update https certificate failed messages (rust-lang/cargo#17679) - chore(deps): update rust-lang/crates-io-auth-action action to v1.0.6 (rust-lang/cargo#17670) - chore(deps): update actions/deploy-pages action to v5.0.1 (rust-lang/cargo#17669) - Fix manifest schema generation: `TomlOptLevel` and `StringOrVec` (rust-lang/cargo#17660) - remove deprecated tempdir (rust-lang/cargo#17663) - chore(ci): remove Windows rustup PATH workaround (rust-lang/cargo#17667) - test: probe stable cargo through rustup (rust-lang/cargo#17666) - Update outdated registry function comments (rust-lang/cargo#17664) - perf(windows): Delay-load system DLLs that most commands don't use (rust-lang/cargo#17623) - Suppress `dead_code_pub_in_binary` for library test units (rust-lang/cargo#17608)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR try to resolve?
macOS runner image now uses Homebrew's rustup proxies, which is under
brew --prefix rustuprather than$CARGO_HOME.The homebrew toolchain is available via
$PATHbutrequires_rustup_stableassumes it under $CARGO_HOMELet's just use
rustup run stable cargo --versionto find the stable cargo instead.See also
Notes to reviewers
🤖 LLM involvement: Found those runner-images and homebrew issues