Skip to content

Commit cddf7c0

Browse files
author
Ibrahim Jarif
authored
Proto: Rename dgraph.badger.v2.pb to badgerpb2 (#1314)
This PR renames badger protobuf package from `dgraph.badger.v2.pb` to `badgerpb2`. The `pb.pb.go` file has been regenerated using the `pb/gen.sh` script.
1 parent fd693e4 commit cddf7c0

File tree

3 files changed

+64
-61
lines changed

3 files changed

+64
-61
lines changed

pb/gen.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
protos=${GOPATH-$HOME/go}/src/github.com/dgraph-io/badger/pb
66
pushd $protos > /dev/null
77
protoc --gofast_out=plugins=grpc:. -I=. pb.proto
8+
9+
# Move pb.pb.go file to the correct directory. This is necessary because protoc
10+
# would generate the pb.pb.go file inside a different directory.
11+
mv $protos/github.com/dgraph-io/badger/v2/pb/pb.pb.go ./

pb/pb.pb.go

Lines changed: 59 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pb/pb.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// Use protos/gen.sh to generate .pb.go files.
1818
syntax = "proto3";
1919

20-
package dgraph.badger.v2.pb;
20+
package badgerpb2;
2121

2222
option go_package = "github.com/dgraph-io/badger/v2/pb";
2323

0 commit comments

Comments
 (0)