3
0

Fix types.yaml search path for codegen

This commit is contained in:
Denis Arh
2020-10-06 21:11:38 +02:00
parent b31bf817b6
commit 56422397cc
+3 -1
View File
@@ -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