Skip to content

Commit

Permalink
Proto: Rename dgraph.badger.v2.pb to badgerpb2 (#1314)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ibrahim Jarif authored Apr 21, 2020
1 parent fd693e4 commit cddf7c0
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 61 deletions.
4 changes: 4 additions & 0 deletions pb/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
protos=${GOPATH-$HOME/go}/src/github.com/dgraph-io/badger/pb
pushd $protos > /dev/null
protoc --gofast_out=plugins=grpc:. -I=. pb.proto

# Move pb.pb.go file to the correct directory. This is necessary because protoc
# would generate the pb.pb.go file inside a different directory.
mv $protos/github.com/dgraph-io/badger/v2/pb/pb.pb.go ./
119 changes: 59 additions & 60 deletions pb/pb.pb.go

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

2 changes: 1 addition & 1 deletion pb/pb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// Use protos/gen.sh to generate .pb.go files.
syntax = "proto3";

package dgraph.badger.v2.pb;
package badgerpb2;

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

Expand Down

0 comments on commit cddf7c0

Please sign in to comment.