Skip to content

Commit 9f07522

Browse files
committed
Generate code file for protos with no definitions
Motivation To prepare for use in a SwiftPM build plugin which requires deterministic output files and to match the behavior of `proto-gen-swift` we should generate a source file even if no definitions are found. Modifications: We no longer return early in the case of no definitions being found. Result: We will generate a Swift source file even if no definitions are found.
1 parent 3ed26da commit 9f07522

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/protoc-gen-grpc-swift/GenerateGRPC.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ final class GenerateGRPC: CodeGenerator {
6363
)
6464
}
6565

66-
if descriptor.services.isEmpty {
67-
continue
68-
}
69-
7066
try self.generateV2Stubs(descriptor, options: options, outputs: outputs)
7167
}
7268
}

0 commit comments

Comments
 (0)