-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
"error: no such subcommand: +nightly-2022-09-07
" when using rustdoc-json on windows
#143
Comments
Thanks for reporting! @Emilgardis Do you see any problem with us using @jnises Any chance you can create a PR with what works for you? If all our existing regression tests pass after the change, I am comfortable to use the change, because we have a good set of regression tests. Assuming @Emilgardis does not know of any issues with switching to that. But I do believe that is also what cargo-expand is using, probably for good reason. |
switching to Basically cargo-public-api/rustdoc-json/src/build.rs Lines 50 to 56 in e400615
would become let mut command = if let Some(toolchain) = OVERRIDDEN_TOOLCHAIN.or(requested_toolchain.as_deref()) {
Command::new("rustup").args(["run", toolchain, "cargo"])
} else {
Command::new("cargo")
}
command.arg("rustdoc"); |
#147 seems to do the same thing as my workaround. |
Closed by #147 |
It seems I'm running into this bug rust-lang/rustup#3036
Nested cargo invocations have issues in recent versions of rustup on windows.
I'm trying to run code like:
I'm on Windows 11
I can work around the issue by making
cargo_rustdoc_command
callrustup run nightly-2022-09-07 cargo ...
instead ofcargo +nightly-2022-09-07 ...
What is the correct way to run nested a cargo with a different toolchain?
The text was updated successfully, but these errors were encountered: