Ver Fonte

Fix no output when Client=False,TestClient=True (#1765)

Severn há 1 ano atrás
pai
commit
3a78b54dc5
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      Sources/protoc-gen-grpc-swift/main.swift

+ 3 - 1
Sources/protoc-gen-grpc-swift/main.swift

@@ -156,7 +156,9 @@ func main(args: [String]) throws {
         binaryFile.content = serializedFileDescriptorProto
         response.file.append(binaryFile)
       }
-      if !fileDescriptor.services.isEmpty && (options.generateClient || options.generateServer) {
+      if !fileDescriptor.services.isEmpty
+        && (options.generateClient || options.generateServer || options.generateTestClient)
+      {
         var grpcFile = Google_Protobuf_Compiler_CodeGeneratorResponse.File()
         let grpcFileName = uniqueOutputFileName(
           component: "grpc",