From 5d5810b16af059c1f008979f991704e73ce69e04 Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Mon, 31 Aug 2020 07:59:16 -0400 Subject: [PATCH] Add a linter for raftutil message type mapping --- GNUmakefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index d1a71556e..9f5ddbbb5 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -222,6 +222,10 @@ check: ## Lint the source code git --no-pager diff go.sum; \ exit 1; fi + @echo "==> Check raft util msg type mapping are in-sync..." + @go generate ./helper/raftutil/ + @if (git status -s ./helper/raftutil| grep -q .go); then echo "raftutil helper message type mapping is out of sync. Run go generate ./... and push."; exit 1; fi + .PHONY: checkscripts checkscripts: ## Lint shell scripts @echo "==> Linting scripts..."