Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 9d07a23

Browse files
authored
Run clippy before check to avoid being skipped (#10464)
* Run clippy before check to avoid being skipped * Tweak output * Apply a workaround
1 parent 704d98a commit 9d07a23

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ci/test-checks.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ if _ scripts/cargo-for-all-lock-files.sh +"$rust_nightly" check --locked --all-t
1818
else
1919
check_status=$?
2020
echo "Some Cargo.lock is outdated; please update them as well"
21-
echo "protip: you can use ./scripts/cargo-for-all-lock-files.sh update ..."
21+
echo "protip: you can use ./scripts/cargo-for-all-lock-files.sh [check|update] ..."
2222
exit "$check_status"
2323
fi
2424

2525
_ cargo +"$rust_stable" fmt --all -- --check
2626

27-
_ cargo +"$rust_nightly" clippy --version
28-
_ cargo +"$rust_nightly" clippy --workspace --all-targets -- --deny=warnings
27+
# -Z... is needed because of clippy bug: https://github.com/rust-lang/rust-clippy/issues/4612
28+
_ cargo +"$rust_nightly" clippy -Zunstable-options --version
29+
_ cargo +"$rust_nightly" clippy -Zunstable-options --workspace --all-targets -- --deny=warnings
2930

3031
_ cargo +"$rust_stable" audit --version
3132
_ scripts/cargo-for-all-lock-files.sh +"$rust_stable" audit --ignore RUSTSEC-2020-0002 --ignore RUSTSEC-2020-0008

scripts/cargo-for-all-lock-files.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ else
3030
fi
3131

3232
for lock_file in $files; do
33+
if [[ -n $CI ]]; then
34+
echo "--- [$lock_file]: cargo " "${shifted_args[@]}" "$@"
35+
fi
3336
(
3437
set -x
3538
cd "$(dirname "$lock_file")"

0 commit comments

Comments
 (0)