make+looprpc: use Docker to compile and format protos

This commit is contained in:
Oliver Gugger 2021-05-25 16:33:44 +02:00
parent 67c81204f6
commit 86df44362f
No known key found for this signature in database
GPG key ID: 8E4256593F177720
13 changed files with 4334 additions and 2409 deletions

View file

@ -74,5 +74,9 @@ install:
$(GOINSTALL) -tags="${tags}" $(LDFLAGS) $(PKG)/cmd/loopd
rpc:
@$(call print, "Compiling RPC protos.")
cd looprpc; ./gen_protos.sh
@$(call print, "Compiling protos.")
cd ./looprpc; ./gen_protos_docker.sh
rpc-check: rpc
@$(call print, "Verifying protos.")
if test -n "$$(git describe --dirty | grep dirty)"; then echo "Protos not properly formatted or not compiled with correct version!"; git status; git diff; exit 1; fi