mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Explicitly run +nightly
for -Zcheck-cfg
pass in ci. (#12230)
# Objective Getting this error running ci locally. ``` $ cargo check -Zcheck-cfg --workspace error: the `-Z` flag is only accepted on the nightly channel of Cargo, but this is the `stable` channel See https://doc.rust-lang.org/book/appendix-07-nightly-rust.html for more information about Rust release channels. 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 check -Zcheck-cfg --workspace`: 101 ``` ## Solution - Add `+nightly` flag to the `check-cfg` pass. --- Obviously we shouldn't be running `nightly` Cargo, but at least now local running of `cargo run -p ci` will pass.
This commit is contained in:
parent
6b212a8bd4
commit
fc0aa4f7b1
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ fn main() {
|
||||||
if what_to_run.contains(Check::CFG_CHECK) {
|
if what_to_run.contains(Check::CFG_CHECK) {
|
||||||
// Check cfg and imports
|
// Check cfg and imports
|
||||||
std::env::set_var("RUSTFLAGS", "-D warnings");
|
std::env::set_var("RUSTFLAGS", "-D warnings");
|
||||||
cmd!(sh, "cargo check -Zcheck-cfg --workspace")
|
cmd!(sh, "cargo +nightly check -Zcheck-cfg --workspace")
|
||||||
.run()
|
.run()
|
||||||
.expect("Please fix failing cfg checks in output above.");
|
.expect("Please fix failing cfg checks in output above.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue