Skip to content

Commit ad22dfc

Browse files
committed
Add message when trying to generate protos without buf installed
Signed-off-by: Tiago Scolari <[email protected]>
1 parent 1d1f85b commit ad22dfc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ modtidy:
6464

6565
.PHONY: proto
6666
proto:
67+
@command -v buf >/dev/null 2>&1 || { echo "buf is not installed. Install it from https://docs.buf.build/installation"; exit 1; }
6768
@if [ ! -f .dapr-proto-ref ]; then echo "No .dapr-proto-ref file found. Run 'make proto-update' first."; exit 1; fi
6869
@find ./internal/proto -type f -name '*.go' -delete
6970
@COMMIT=$$(cat .dapr-proto-ref | tr -d '\n'); \

0 commit comments

Comments
 (0)