Rollup merge of #107169 - albertlarsan68:lock-in-pre-push, r=Mark-Simulacrum

Pass `--locked` to the x test tidy call

This allows to fail the push when the `Cargo.lock` file needs to be updated.
This commit is contained in:
Matthias Krüger 2023-01-29 20:03:38 +01:00 committed by GitHub
commit 6ce862cf8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,4 +14,4 @@ ROOT_DIR="$(git rev-parse --show-toplevel)"
echo "Running pre-push script $ROOT_DIR/x test tidy"
cd "$ROOT_DIR"
./x test tidy
CARGOFLAGS="--locked" ./x test tidy