Skip to content

Commit

Permalink
Rollup merge of #107169 - albertlarsan68:lock-in-pre-push, r=Mark-Sim…
Browse files Browse the repository at this point in the history
…ulacrum

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

This allows to fail the push when the `Cargo.lock` file needs to be updated.
  • Loading branch information
matthiaskrgr authored Jan 29, 2023
2 parents 77e78e2 + 78db9ee commit 6ce862c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/pre-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6ce862c

Please sign in to comment.