mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
codegen:proto: Use revised API to gengo parser
This commit is contained in:
parent
4b55936ab0
commit
dd4e456875
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user