Skip to content

Commit 6ce862c

Browse files
authored
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.
2 parents 77e78e2 + 78db9ee commit 6ce862c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/pre-push.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ ROOT_DIR="$(git rev-parse --show-toplevel)"
1414
echo "Running pre-push script $ROOT_DIR/x test tidy"
1515

1616
cd "$ROOT_DIR"
17-
./x test tidy
17+
CARGOFLAGS="--locked" ./x test tidy

0 commit comments

Comments
 (0)