mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-23 10:58:42 +00:00
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.
|
||||
|
||||
b := parser.New()
|
||||
b.AddBuildTags("proto")
|
||||
b := parser.NewWithOptions(parser.Options{BuildTags: []string{"proto"}})
|
||||
|
||||
var allInputs []string
|
||||
if len(g.APIMachineryPackages) != 0 {
|
||||
|
Reference in New Issue
Block a user