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
|
- protobuf-lint
|
||||||
sources:
|
sources:
|
||||||
- "api/proto/**/*.proto"
|
- "api/proto/**/*.proto"
|
||||||
|
generates:
|
||||||
|
- "**/*.pb.go"
|
||||||
cmds:
|
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 }}
|
- 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
|
- deps
|
||||||
sources:
|
sources:
|
||||||
- "**/*.go"
|
- "**/*.go"
|
||||||
|
generates:
|
||||||
|
- "**/*.mock.go"
|
||||||
cmds:
|
cmds:
|
||||||
- go generate -x ./...
|
- go generate -x ./...
|
||||||
|
|
||||||
|
@ -88,6 +92,7 @@ tasks:
|
||||||
|
|
||||||
integration-test:
|
integration-test:
|
||||||
deps:
|
deps:
|
||||||
|
- deps
|
||||||
- generate
|
- generate
|
||||||
cmds:
|
cmds:
|
||||||
- |
|
- |
|
||||||
|
|
Loading…
Add table
Reference in a new issue