Skip to content

Commit

Permalink
fix(template): remove buf.work.yaml if grpc false (#121)
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Brumhard <tobias.brumhard@mail.schwarz>
  • Loading branch information
brumhard committed May 24, 2022
1 parent d4effd3 commit 7e749ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gotemplate/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 7e749ac

Please sign in to comment.