Skip to content

Commit

Permalink
Merge pull request #37 from TRON-US/proto-fix
Browse files Browse the repository at this point in the history
[BTFS-1134] fix incompatible protos and update makefile
  • Loading branch information
laipogo authored Nov 27, 2019
2 parents 4b937d5 + e9d0641 commit 54ad5cd
Show file tree
Hide file tree
Showing 5 changed files with 140 additions and 147 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ PG_FIX_CANDIDATES=./protos/node/node.pb.go \
install: brew trongogo

brew:
brew install protobuf
brew install prototool
brew install postgresql go
brew install redis go
brew services start postgresql
brew services start redis
brew install go protobuf prototool postgresql redis

trongogo:
cd ../ && git clone https://github.com/TRON-US/protobuf || true
Expand Down Expand Up @@ -50,8 +45,12 @@ pgfix:
build: lintf genproto buildgo pgfix

test:
brew services start postgresql
brew services start redis
dropdb --if-exists $(TEST_DB_NAME)
createdb $(TEST_DB_NAME)
go test -v ./... -args -db_url=$(TEST_DB_URL) -rd_url=$(TEST_RD_URL)
dropdb $(TEST_DB_NAME)
brew services stop postgresql
brew services stop redis

144 changes: 72 additions & 72 deletions protos/hub/hub.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 protos/hub/hub.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ option java_multiple_files = true;
option java_outer_classname = "HubProto";
option java_package = "io.btfs.hub";

import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "github.com/tron-us/protobuf/gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto";

service Settings {
Expand Down
Loading

0 comments on commit 54ad5cd

Please sign in to comment.