Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions generate-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@ go install github.com/gogo/protobuf/protoc-gen-gofast
protoc -I.:${GOGO_PROTOBUF} \
--gofast_out=plugins=grpc:../go-tipb *.proto

# Generate TiCI proto with the main tipb Go package.
protoc -I.:${GOGO_PROTOBUF} \
--gofast_out=plugins=grpc,Mtici/indexer.proto=github.com/pingcap/tipb/go-tipb,import_path=tipb:../go-tipb tici/*.proto

cd ../go-tipb
mv tici/indexer.pb.go tici.pb.go
sed -i.bak -E 's/import _ \"gogoproto\"//g' *.pb.go
sed -i.bak -E 's/import fmt \"fmt\"//g' *.pb.go
sed -i.bak -E 's/import _ \"\.\"//g' *.pb.go
sed -i.bak -E 's/package tipb_tici/package tipb/' *.pb.go
rm -f *.bak
go run golang.org/x/tools/cmd/goimports -w *.pb.go
1 change: 1 addition & 0 deletions go-tipb/analyze.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3,457 changes: 2,597 additions & 860 deletions go-tipb/executor.pb.go

Large diffs are not rendered by default.

751 changes: 385 additions & 366 deletions go-tipb/expression.pb.go

Large diffs are not rendered by default.

Loading
Loading