Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhostettler committed May 22, 2024
1 parent 53afb93 commit d45dbda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate/avro_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ func mapFields(list *ast.FieldList, srcDir string) (map[string]*ast.Field, error
continue
}
embedName := t.Name
embedStruct, err := parseGoStruct(embedName, filepath.Join(srcDir, strings.ToLower(embedName)+".go"))
embedStruct, err := parseGoStruct(embedName, filepath.Join(srcDir, structToFilename(embedName)))
if err != nil {
return nil, fmt.Errorf("failed to parse embedded go struct %q: %v", embedName, err)
}
Expand Down

0 comments on commit d45dbda

Please sign in to comment.