bevyengine / bevyengine/bevy

Running nightly cargo in CI can lead to local panics

Open
#12,232 5 comments 0 reactions 0 assignees View on GitHub
A-Build-System C-Bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.