forked from dydxprotocol/v4-chain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (17 loc) · 764 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DOCKER := $(shell which docker)
protoVer=0.13.3
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)
proto-format:
@$(protoImage) find ./proto -name "*.proto" -exec clang-format -i {} \;
proto-lint:
@$(protoImage) buf lint --error-format=json
proto-gen:
@echo "Generating Protobuf files"
@$(protoImage) sh ./protocol/scripts/protocgen.sh
proto-check-bc-breaking:
@rm -rf ./.proto-export
@$(protoImage) buf breaking --against .git#branch=$$(git merge-base HEAD origin/main)
proto-export:
@rm -rf proto/.proto-export && cd proto && buf export --config ./buf.yaml --output ./.proto-export
.PHONY: proto-format proto-lint proto-check-bc-breaking proto-export