From f48b0289f5ce0777c6999bf1dcbb0aabbad8a720 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Wed, 3 Jun 2020 11:14:33 +0200 Subject: [PATCH] make: check that all RPCs are defined in yaml --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index d4dc514f..10a6de84 100644 --- a/Makefile +++ b/Makefile @@ -210,6 +210,7 @@ rpc-format: rpc-check: rpc @$(call print, "Verifying protos.") + for rpc in $$(find lnrpc/ -name "*.proto" | $(XARGS) awk '/ rpc /{print $$2}'); do if ! grep -q $$rpc lnrpc/rest-annotations.yaml; then echo "RPC $$rpc not added to lnrpc/rest-annotations.yaml"; exit 1; fi; done if test -n "$$(git describe --dirty | grep dirty)"; then echo "Protos not properly formatted or not compiled with v3.4.0"; git status; git diff; exit 1; fi mobile-rpc: