Make proto target depend on minimaltools, so we have protos installed in dist

Signed-off-by: Andrew Mason <amason@slack-corp.com>
This commit is contained in:
Andrew Mason 2021-01-05 19:46:03 -05:00
Родитель 672bf95e98
Коммит 99b507c2a8
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -179,9 +179,9 @@ ifndef NOBANNER
echo $$(date): Compiling proto definitions
endif
$(PROTO_GO_OUTS): install_protoc-gen-go proto/*.proto
$(PROTO_GO_OUTS): minimaltools install_protoc-gen-go proto/*.proto
for name in $(PROTO_SRC_NAMES); do \
$(VTROOT)/bin/protoc --go_out=plugins=grpc:. -I/usr/local/include:proto proto/$${name}.proto && \
$(VTROOT)/bin/protoc --go_out=plugins=grpc:. -I${PWD}/dist/vt-protoc-3.6.1/include:proto proto/$${name}.proto && \
goimports -w vitess.io/vitess/go/vt/proto/$${name}/$${name}.pb.go; \
done
cp -Rf vitess.io/vitess/go/vt/proto/* go/vt/proto