about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlbert Larsan <74931857+albertlarsan68@users.noreply.github.com>2023-01-21 20:21:04 +0000
committerAlbert Larsan <74931857+albertlarsan68@users.noreply.github.com>2023-01-21 20:21:04 +0000
commit78db9ee21a558d43948cde67c22487993c1b23ac (patch)
tree9fbc7c278e599394a9860c2afc72cdde99d8d7b6
parent005fc0f00f2d4ceaf523b67a8f9c5665b8ac5baf (diff)
downloadrust-78db9ee21a558d43948cde67c22487993c1b23ac.tar.gz
rust-78db9ee21a558d43948cde67c22487993c1b23ac.zip
Pass `--locked` to the x test tidy call
This allows to fail the push when the `Cargo.lock` file needs to be updated.
-rwxr-xr-xsrc/etc/pre-push.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/pre-push.sh b/src/etc/pre-push.sh
index 7a846d44ad6..ff17931115c 100755
--- a/src/etc/pre-push.sh
+++ b/src/etc/pre-push.sh
@@ -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