From 1eb5b092b5258ab882a4a15a6ffdeb69128159c0 Mon Sep 17 00:00:00 2001 From: Tobias Brumhard Date: Fri, 20 May 2022 15:17:41 +0200 Subject: [PATCH] fix(template): remove buf.work.yaml if grpc false Signed-off-by: Tobias Brumhard --- pkg/gotemplate/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gotemplate/options.go b/pkg/gotemplate/options.go index 2b8577cc..402ae30d 100644 --- a/pkg/gotemplate/options.go +++ b/pkg/gotemplate/options.go @@ -354,7 +354,7 @@ Options: description: "Base configuration for gRPC", postHook: func(v interface{}, _ *OptionValues, targetDir string) error { set := v.(bool) - files := []string{"api/proto", "tools.go", "buf.gen.yaml", "buf.yaml", "api/openapi.v1.yml"} + files := []string{"api/proto", "tools.go", "buf.gen.yaml", "buf.work.yaml", "api/openapi.v1.yml"} if set { return os.RemoveAll(path.Join(targetDir, "api/openapi.v1.yml"))