We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd41ee3 commit 444466fCopy full SHA for 444466f
Makefile
@@ -1,3 +1,11 @@
1
+ifeq ($(OS),Windows_NT)
2
+ protoc_install :=
3
+else ifeq ($(shell uname -s),Darwin)
4
+ protoc_install := brew install protobuf
5
+else ifeq ($(shell uname -s),Linux)
6
+ protoc_install := apt install -y protobuf-compiler
7
+endif
8
+
9
.PHONY: test
10
test:
11
go test ./...
@@ -8,4 +16,7 @@ lint:
16
17
.PHONY: gen-proto
18
gen-proto:
19
+ $(protoc_install)
20
+ go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
21
+ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
22
protoc --proto_path=. --go_out . --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative internal/pb/base.proto internal/pb/source.proto internal/pb/destination.proto
0 commit comments