2
2
3
3
SHELL: =bash
4
4
PROTOWRAP =hack/bin/protowrap
5
- PROTOC_GEN_GO =hack/bin/protoc-gen-go
5
+ PROTOC_GEN_GO =hack/bin/protoc-gen-go-lite
6
6
PROTOC_GEN_STARPC =hack/bin/protoc-gen-go-starpc
7
- PROTOC_GEN_VTPROTO =hack/bin/protoc-gen-go-vtproto
8
7
GOIMPORTS =hack/bin/goimports
9
8
GOFUMPT =hack/bin/gofumpt
10
9
GOLANGCI_LINT =hack/bin/golangci-lint
@@ -23,14 +22,8 @@ vendor:
23
22
$(PROTOC_GEN_GO ) :
24
23
cd ./hack; \
25
24
go build -v \
26
- -o ./bin/protoc-gen-go \
27
- google.golang.org/protobuf/cmd/protoc-gen-go
28
-
29
- $(PROTOC_GEN_VTPROTO ) :
30
- cd ./hack; \
31
- go build -v \
32
- -o ./bin/protoc-gen-go-vtproto \
33
- github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto
25
+ -o ./bin/protoc-gen-go-lite \
26
+ github.com/aperturerobotics/protobuf-go-lite/cmd/protoc-gen-go-lite
34
27
35
28
$(PROTOC_GEN_STARPC ) :
36
29
cd ./hack; \
@@ -69,7 +62,7 @@ $(GO_MOD_OUTDATED):
69
62
github.com/psampaz/go-mod-outdated
70
63
71
64
.PHONY : gengo
72
- gengo : vendor $(GOIMPORTS ) $(PROTOWRAP ) $(PROTOC_GEN_GO ) $(PROTOC_GEN_VTPROTO ) $( PROTOC_GEN_STARPC )
65
+ gengo : vendor $(GOIMPORTS ) $(PROTOWRAP ) $(PROTOC_GEN_GO ) $(PROTOC_GEN_STARPC )
73
66
shopt -s globstar; \
74
67
set -eo pipefail; \
75
68
export PROJECT=$$(go list -m ) ; \
@@ -79,9 +72,8 @@ gengo: vendor $(GOIMPORTS) $(PROTOWRAP) $(PROTOC_GEN_GO) $(PROTOC_GEN_VTPROTO) $
79
72
ln -s $$(pwd ) $$(pwd ) /vendor/$$ {PROJECT} ; \
80
73
$(PROTOWRAP ) \
81
74
-I $$(pwd ) /vendor \
82
- --go_out=$$(pwd ) /vendor \
83
- --go-vtproto_out=$$(pwd ) /vendor \
84
- --go-vtproto_opt=features=marshal+unmarshal+size+equal+clone \
75
+ --go-lite_out=$$(pwd ) /vendor \
76
+ --go-lite_opt=features=marshal+unmarshal+size+equal+clone \
85
77
--go-starpc_out=$$(pwd ) /vendor \
86
78
--proto_path $$(pwd ) /vendor \
87
79
--print_structure \
0 commit comments