1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +02:00

fix example build

This commit is contained in:
longXboy
2021-05-10 22:09:39 +08:00
parent 86193a2a5f
commit a83d396b74
2 changed files with 6 additions and 231 deletions
+1 -1
View File
@@ -128,7 +128,6 @@ func fileDescriptorProto(path string) (*dpb.FileDescriptorProto, error) {
func allDependency(fd *dpb.FileDescriptorProto) ([]*dpb.FileDescriptorProto, error) {
var files []*dpb.FileDescriptorProto
files = append(files, fd)
for _, dep := range fd.Dependency {
fdDep, err := fileDescriptorProto(dep)
if err != nil {
@@ -140,6 +139,7 @@ func allDependency(fd *dpb.FileDescriptorProto) ([]*dpb.FileDescriptorProto, err
}
files = append(files, temp...)
}
files = append(files, fd)
return files, nil
}