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
k8s-merge-robot 2016-04-20 01:09:37 -07:00
commit 8c170ff5ff
1 changed files with 1 additions and 1 deletions

View File

@ -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) {