We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30840f2 commit 7132978Copy full SHA for 7132978
internal/plugin/generate.go
@@ -39,6 +39,9 @@ func Generate(request *pluginpb.CodeGeneratorRequest) (*pluginpb.CodeGeneratorRe
39
packageDirs := make(map[protoreflect.FullName]string)
40
seenPackages := make(map[protoreflect.FullName]struct{})
41
protoFiles.RangeFiles(func(file protoreflect.FileDescriptor) bool {
42
+ if _, ok := generate[file.Path()]; !ok {
43
+ return true
44
+ }
45
pkg := file.Package()
46
if _, ok := seenPackages[pkg]; ok {
47
return true
0 commit comments