codegen:proto: Use revised API to gengo parser
This commit is contained in:
@@ -104,8 +104,7 @@ func Run(g *Generator) {
|
|||||||
|
|
||||||
// Roughly models gengo/v2/args.GeneratorArgs.NewBuilder.
|
// Roughly models gengo/v2/args.GeneratorArgs.NewBuilder.
|
||||||
|
|
||||||
b := parser.New()
|
b := parser.NewWithOptions(parser.Options{BuildTags: []string{"proto"}})
|
||||||
b.AddBuildTags("proto")
|
|
||||||
|
|
||||||
var allInputs []string
|
var allInputs []string
|
||||||
if len(g.APIMachineryPackages) != 0 {
|
if len(g.APIMachineryPackages) != 0 {
|
||||||
|
Reference in New Issue
Block a user