Skip to content

Commit

Permalink
New layout for proto definitions and generated files (#1427)
Browse files Browse the repository at this point in the history
* New project layout for proto definitions

Signed-off-by: Annanay <annanay.a@media.net>

* Regenerate grpc code from proto definitions

Signed-off-by: Annanay <annanay.a@media.net>

* Commit Makefile changes, run make protoc

Signed-off-by: Annanay <annanay.a@media.net>

* Fix dependency in gopkg.toml

Signed-off-by: Annanay <annanay.a@media.net>

* Corrected rebase

Signed-off-by: Annanay <annanay.a@media.net>

* Install the right proto bin versions

Signed-off-by: Annanay <annanay.a@media.net>

* Run make fmt

Signed-off-by: Annanay <annanay.a@media.net>

* Revert make fmt changes

Signed-off-by: Annanay <annanay.a@media.net>
  • Loading branch information
annanay25 authored and yurishkuro committed Mar 27, 2019
1 parent 95c69cc commit 65a499a
Show file tree
Hide file tree
Showing 11 changed files with 1,905 additions and 840 deletions.
5 changes: 3 additions & 2 deletions Gopkg.lock

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

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ required = [

[[constraint]]
name = "github.com/gogo/protobuf"
revision = "fd9a4790f3963525fb889cc00e0a8f828e0b3a29"
revision = "ba06b47c162d49f2af050fb4c75bcbc86a159d5c"

[prune]
go-tests = true
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,10 @@ proto:

$(PROTOC) \
$(PROTO_INCLUDES) \
--gogo_out=plugins=grpc,$(PROTO_GOGO_MAPPINGS):$(PWD)/proto-gen/api_v2/ \
--grpc-gateway_out=$(PROTO_GOGO_MAPPINGS):$(PWD)/proto-gen/api_v2/ \
--swagger_out=$(PWD)/proto-gen/openapi/ \
model/proto/api_v2.proto
--gogo_out=plugins=grpc,$(PROTO_GOGO_MAPPINGS):$(PWD)/proto-gen/ \
--grpc-gateway_out=$(PROTO_GOGO_MAPPINGS):$(PWD)/proto-gen/ \
--swagger_out=allow_merge=true:$(PWD)/proto-gen/openapi/ \
model/proto/api_v2/*.proto

$(PROTOC) \
-I model/proto \
Expand Down
Loading

0 comments on commit 65a499a

Please sign in to comment.