generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ts_proto_library): require explicit srcs to copy (#617)
* Example on bazel failing when 2 ts_proto_library are in a single BUILD file error: `Error in directory_path: directory_path rule '_logger_pb.d.ts_dirpath' in package 'examples/proto_grpc' conflicts with existing directory_path rule` * fix: explicit files_to_copy for multiple ts_proto_lib * fix(ts_proto_library): require explicit srcs to copy The hack of using a glob over the srcs causes a collision when there is more than one ts_proto_library in a bazel package. The resulting error doesn't give a clue what fix is required. * chore: docgen * fix: docs --------- Co-authored-by: egorm <[email protected]>
- Loading branch information
Showing
7 changed files
with
114 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// https://github.com/grpc/grpc/blob/master/src/proto/grpc/status/status.proto | ||
|
||
syntax = "proto3"; | ||
|
||
package rpc; | ||
|
||
import "google/protobuf/any.proto"; | ||
|
||
option go_package = "google.golang.org/genproto/googleapis/rpc/status;status"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "StatusProto"; | ||
option java_package = "com.google.rpc"; | ||
option objc_class_prefix = "RPC"; | ||
|
||
message Status { | ||
// The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. | ||
int32 code = 1; | ||
|
||
// A developer-facing error message, which should be in English. Any | ||
// user-facing error message should be localized and sent in the | ||
// [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. | ||
string message = 2; | ||
|
||
// A list of messages that carry the error details. There will be a | ||
// common set of message types for APIs to use. | ||
repeated google.protobuf.Any details = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// @generated by protoc-gen-connect-es v1.4.0 with parameter "keep_empty_files=true,target=js+dts" | ||
// @generated from file examples/proto_grpc/status.proto (package rpc, syntax proto3) | ||
/* eslint-disable */ | ||
// @ts-nocheck | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// @generated by protoc-gen-es v1.8.0 with parameter "keep_empty_files=true,target=js+dts" | ||
// @generated from file examples/proto_grpc/status.proto (package rpc, syntax proto3) | ||
/* eslint-disable */ | ||
// @ts-nocheck | ||
|
||
import type { Any, BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; | ||
import { Message, proto3 } from "@bufbuild/protobuf"; | ||
|
||
/** | ||
* @generated from message rpc.Status | ||
*/ | ||
export declare class Status extends Message<Status> { | ||
/** | ||
* @generated from field: int32 code = 1; | ||
*/ | ||
code: number; | ||
|
||
/** | ||
* @generated from field: string message = 2; | ||
*/ | ||
message: string; | ||
|
||
/** | ||
* @generated from field: repeated google.protobuf.Any details = 3; | ||
*/ | ||
details: Any[]; | ||
|
||
constructor(data?: PartialMessage<Status>); | ||
|
||
static readonly runtime: typeof proto3; | ||
static readonly typeName = "rpc.Status"; | ||
static readonly fields: FieldList; | ||
|
||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Status; | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Status; | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Status; | ||
|
||
static equals(a: Status | PlainMessage<Status> | undefined, b: Status | PlainMessage<Status> | undefined): boolean; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters