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