소스 검색

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

Severn 1 년 전
부모
커밋
3a78b54dc5
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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",