codegen:proto: Use revised API to gengo parser

This commit is contained in:
Tim Hockin
2024-01-15 16:03:16 -08:00
parent 4b55936ab0
commit dd4e456875

View File

@@ -104,8 +104,7 @@ func Run(g *Generator) {
// Roughly models gengo/v2/args.GeneratorArgs.NewBuilder.
b := parser.New()
b.AddBuildTags("proto")
b := parser.NewWithOptions(parser.Options{BuildTags: []string{"proto"}})
var allInputs []string
if len(g.APIMachineryPackages) != 0 {