Skip to content

Commit

Permalink
fix(protoc-gen-grain): fix generating duplicate respond function
Browse files Browse the repository at this point in the history
1. fix generating duplicate respond function when multiple services in one proto file.
2. update
all examples to use new generator.
3. fix opentelemetry-custom-provider
  • Loading branch information
qazwsxedckll committed Jan 18, 2024
1 parent 7e99a53 commit b5d0285
Show file tree
Hide file tree
Showing 57 changed files with 1,154 additions and 494 deletions.
4 changes: 2 additions & 2 deletions cluster/cluster.pb.go

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

4 changes: 2 additions & 2 deletions cluster/cluster_test_tool/pubsub_cluster.pb.go

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

4 changes: 2 additions & 2 deletions cluster/gossip.pb.go

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

4 changes: 2 additions & 2 deletions cluster/grain.pb.go

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

5 changes: 3 additions & 2 deletions cluster/pubsub.pb.go

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

4 changes: 2 additions & 2 deletions cluster/pubsub_test.pb.go

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

6 changes: 3 additions & 3 deletions examples/cluster-basic/shared/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
protoc --go_out=. --go_opt=paths=source_relative --proto_path=. protos.proto
protoc --go_out=. --go_opt=paths=source_relative --plugin=$GOPATH/bin/protoc-gen-go-grain --go-grain_out=. --go-grain_opt=paths=source_relative protos.proto

protoc --go_out=. --go_opt=paths=source_relative \
--plugin=protoc-gen-go-grain=../../../protobuf/protoc-gen-go-grain/protoc-gen-go-grain.sh --go-grain_out=. --go-grain_opt=paths=source_relative \
-I../../ -I. protos.proto
12 changes: 6 additions & 6 deletions examples/cluster-basic/shared/protos.pb.go

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

5 changes: 3 additions & 2 deletions examples/cluster-broadcast/shared/build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
protoc --go_out=. --go_opt=paths=source_relative --proto_path=. protos.proto
protoc --go_out=. --go_opt=paths=source_relative --plugin=$GOPATH/bin/protoc-gen-go-grain --go-grain_out=. --go-grain_opt=paths=source_relative protos.proto
protoc --go_out=. --go_opt=paths=source_relative \
--plugin=protoc-gen-go-grain=../../../protobuf/protoc-gen-go-grain/protoc-gen-go-grain.sh --go-grain_out=. --go-grain_opt=paths=source_relative \
-I../../ -I. protos.proto
12 changes: 6 additions & 6 deletions examples/cluster-broadcast/shared/protos.pb.go

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

Loading

0 comments on commit b5d0285

Please sign in to comment.