mirror of
https://github.com/luxfi/zapdb.git
synced 2026-10-30 15:12:20 +00:00
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.
12 lines
412 B
Bash
Executable File
12 lines
412 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# You might need to go get -v github.com/gogo/protobuf/...
|
|
|
|
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 ./
|