Fix regeneration of protobuf assets and mocks

This commit is contained in:
Peter 2021-02-22 12:08:48 +01:00
parent e81048734f
commit 37c43139cc
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9

View file

@ -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:
- |