indicate that test-checks.sh requires cargo-hack (#33519)

This commit is contained in:
Jeff Biseda 2023-10-10 12:08:14 -07:00 committed by GitHub
parent ad949b21b7
commit 8c27d8bbb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,14 @@ source ci/rust-version.sh nightly
eval "$(ci/channel-info.sh)"
cargoNightly="$(readlink -f "./cargo") nightly"
# check that cargo-hack has been installed
if ! $cargoNightly hack --version >/dev/null 2>&1; then
cat >&2 <<EOF
ERROR: cargo hack failed.
install 'cargo hack' with 'cargo install cargo-hack'
EOF
fi
echo --- build environment
(
set -x