Skip to content

Commit

Permalink
update proto build
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebriskin committed Sep 12, 2022
1 parent a106527 commit 4ddd129
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ dist/tool-install: Makefile

dist/buf: dist/buf-go

dist/buf-go: dist/tool-install proto/viam/app/v1/app.proto proto/tagger/v1/tagger.proto
#TODO(steve) add all proto files to the list
dist/buf-go: dist/tool-install proto/viam/app/v1/app.proto proto/viam/tagger/v1/tagger.proto
PATH=$(PATH_WITH_TOOLS) buf lint
PATH=$(PATH_WITH_TOOLS) buf format -w
PATH=$(PATH_WITH_TOOLS) buf generate
PATH=$(PATH_WITH_TOOLS) buf generate --template ./etc/buf.gen.tag.yaml
PATH=$(PATH_WITH_TOOLS) ls proto/viam/app/v1/*_grpc.pb.go | while read l; do mockgen -source="$$l" -destination=proto/viam/app/mock_v1/mock_`basename "$$l"`; done
PATH=$(PATH_WITH_TOOLS) buf generate --template ./proto/viam/buf.gen.yaml
PATH=$(PATH_WITH_TOOLS) ls app/v1/*_grpc.pb.go | while read l; do mockgen -source="$$l" -destination=app/mock_v1/mock_`basename "$$l"`; done
touch dist/buf-go

lint: dist/tool-install
Expand Down

0 comments on commit 4ddd129

Please sign in to comment.