diff --git a/eng/tools/generator/cmd/v2/common/generation.go b/eng/tools/generator/cmd/v2/common/generation.go index 949eb67084af..aa4181a53b41 100644 --- a/eng/tools/generator/cmd/v2/common/generation.go +++ b/eng/tools/generator/cmd/v2/common/generation.go @@ -314,7 +314,7 @@ func (ctx *GenerateContext) GenerateForSingleRPNamespace(generateParam *Generate if _, err := os.Stat(filepath.Join(packagePath, "fake")); !os.IsNotExist(err) && changelog.HasBreakingChanges() { log.Printf("Replace fake module v2+...") if err = replaceModuleImport(packagePath, generateParam.RPName, generateParam.NamespaceName, previousVersion, version.String(), - "fake", "_server.go"); err != nil { + "fake", ".go"); err != nil { return nil, err } }