Makefile: don't format proto

There are different versions of clang-format being installed on
different versions of ubuntu that apparently produce different
results when formatting the proto files. This is likely too much
of a hurdle for new contributors to also manually install the
correct version of a command line tool just to format stuff.
This commit is contained in:
Oliver Gugger 2020-03-11 10:17:45 +01:00
parent 0a9dc6aeb2
commit 7917d22daf
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -178,7 +178,7 @@ rpc-format:
@$(call print, "Formatting protos.") @$(call print, "Formatting protos.")
cd ./lnrpc; find . -name "*.proto" | xargs clang-format --style=file -i cd ./lnrpc; find . -name "*.proto" | xargs clang-format --style=file -i
rpc-check: rpc-format rpc rpc-check: rpc
@$(call print, "Verifying protos.") @$(call print, "Verifying protos.")
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