make: check that all RPCs are defined in yaml

This commit is contained in:
Oliver Gugger 2020-06-03 11:14:33 +02:00
parent 558d63718b
commit f48b0289f5
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -210,6 +210,7 @@ rpc-format:
rpc-check: rpc rpc-check: rpc
@$(call print, "Verifying protos.") @$(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 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: mobile-rpc: