Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit d522b82

Browse files
authored
fix generated path (#102)
1 parent 8b75520 commit d522b82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gateway/protoc-gen-cc-gateway/generator/generator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func (g *Generator) generateCC(file *descriptor.File) (*plugin.CodeGeneratorResp
6363
ext := filepath.Ext(name)
6464
base := strings.TrimSuffix(name, ext)
6565

66-
basePath := file.GoPkg.Name
66+
basePath := path.Dir(*file.FileDescriptorProto.Name)
6767
if !g.Opts.PathsSourceRelative {
6868
basePath = file.GoPkg.Path
6969
}

0 commit comments

Comments
 (0)