mirror of https://github.com/k3s-io/k3s
Merge pull request #24498 from caesarxuchao/dot-deepcopy-gen
Automatic merge from submit-queue Remove dot in generated deepcopy package name ref https://github.com/kubernetes/kubernetes/pull/20573#issuecomment-212125061 cc @wojtek-t I tested with #20573 to verify hack/codegen.sh worked and the generated code compiled.pull/6/head
commit
8c170ff5ff
|
@ -84,7 +84,7 @@ func Packages(context *generator.Context, arguments *args.GeneratorArgs) generat
|
|||
path := p.Path
|
||||
packages = append(packages,
|
||||
&generator.DefaultPackage{
|
||||
PackageName: filepath.Base(path),
|
||||
PackageName: strings.Split(filepath.Base(path), ".")[0],
|
||||
PackagePath: path,
|
||||
HeaderText: header,
|
||||
GeneratorFunc: func(c *generator.Context) (generators []generator.Generator) {
|
||||
|
|
Loading…
Reference in New Issue