Running nightly cargo in CI can lead to local panics
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
```
... previous cargo run -p ci output
...
$ cargo +nightly check -Zcheck-cfg --workspace
error: no such command: `+nightly`
Cargo does not handle `+toolchain` directives.
Did you mean to invoke `cargo` through `rustup` instead?
thread 'main' panicked at tools\ci\src\main.rs:166:14:
Please fix failing cfg checks in output above.: command exited with non-zero code `cargo +nightly check -Zcheck-cfg --workspace`: 101
```
That's what I get from `cargo run -p ci`. But if I run `cargo +nightly check -Zcheck-cfg --workspace` separately, it works.
_Originally posted by @targrub in https://github.com/bevyengine/bevy/issues/12230#issuecomment-1973758621_
Contributor guide
Assessment
This issue has not been assessed yet.