Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Nov 1, 2021
1 parent f001b6c commit 7cdf6d9
Show file tree
Hide file tree
Showing 3 changed files with 260 additions and 258 deletions.
4 changes: 2 additions & 2 deletions tidb-binlog/proto/generate-binlog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
cd proto/

echo "generate binlog code..."
GOGO_ROOT=${GOPATH}/src/github.com/gogo/protobuf
protoc -I.:${GOGO_ROOT}:${GOGO_ROOT}/protobuf --gofast_out=../go-binlog bl.proto
GOGO_ROOT=/data2/ryan/go/src/github.com/gogo/protobuf
protoc -I.:${GOGO_ROOT}:${GOGO_ROOT}/protobuf --gofast_out=../go-binlog secondary_binlog.proto
cd ../go-binlog
sed -i.bak -E 's/_ \"github.com\/gogo\/protobuf\/gogoproto\"//g' *.pb.go
sed -i.bak -E 's/import fmt \"fmt\"//g' *.pb.go
Expand Down
Loading

0 comments on commit 7cdf6d9

Please sign in to comment.