From 56422397cc4f7752c78258766f6a3e27ab9b9dee Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Tue, 6 Oct 2020 21:11:38 +0200 Subject: [PATCH] Fix types.yaml search path for codegen --- pkg/codegen/codegen.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/codegen/codegen.go b/pkg/codegen/codegen.go index 2b8401940..cd24af469 100644 --- a/pkg/codegen/codegen.go +++ b/pkg/codegen/codegen.go @@ -33,7 +33,9 @@ func Proc() { eventSrc []string eventDefs []*eventsDef - typeSrcPath = filepath.Join("*", "*", "types.yaml") + // workaround because + // filepath.Join merges "*","*" into "**" instead of "*/*" + typeSrcPath = filepath.Join("*"+string(filepath.Separator)+"*", "types.yaml") typeSrc []string typeDefs []*typesDef