Fix regeneration of protobuf assets and mocks
This commit is contained in:
parent
e81048734f
commit
37c43139cc
1 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,8 @@ tasks:
|
|||
- protobuf-lint
|
||||
sources:
|
||||
- "api/proto/**/*.proto"
|
||||
generates:
|
||||
- "**/*.pb.go"
|
||||
cmds:
|
||||
- buf protoc --proto_path ./api/proto/ --go_out=./pkg/ --go_opt=paths=source_relative --go-grpc_out=./pkg/ --go-grpc_opt=paths=source_relative {{ .PROTO_FILES }}
|
||||
|
||||
|
@ -63,6 +65,8 @@ tasks:
|
|||
- deps
|
||||
sources:
|
||||
- "**/*.go"
|
||||
generates:
|
||||
- "**/*.mock.go"
|
||||
cmds:
|
||||
- go generate -x ./...
|
||||
|
||||
|
@ -88,6 +92,7 @@ tasks:
|
|||
|
||||
integration-test:
|
||||
deps:
|
||||
- deps
|
||||
- generate
|
||||
cmds:
|
||||
- |
|
||||
|
|
Loading…
Add table
Reference in a new issue