-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules_proto_config.yaml
50 lines (50 loc) · 1.55 KB
/
rules_proto_config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
plugins:
- name: cpp
implementation: builtin:cpp
deps:
- "@org_golang_google_protobuf//reflect/protoreflect"
- "@org_golang_google_protobuf//runtime/protoimpl"
- name: protoc-gen-go
implementation: golang:protobuf:protoc-gen-go
deps:
- "@org_golang_google_protobuf//reflect/protoreflect"
- "@org_golang_google_protobuf//runtime/protoimpl"
- name: protoc-gen-go-grpc
implementation: grpc:grpc-go:protoc-gen-go-grpc
deps:
- "@org_golang_google_grpc//:go_default_library"
- "@org_golang_google_grpc//codes"
- "@org_golang_google_grpc//status"
rules:
- name: proto_compile
implementation: stackb:rules_proto:proto_compile
visibility:
- //visibility:public
- name: proto_descriptor_set
implementation: stackb:rules_proto:proto_descriptor_set
visibility:
- //visibility:public
- name: proto_go_library
enabled: true
implementation: stackb:rules_proto:proto_go_library
visibility:
- //visibility:public
resolves:
- "google/protobuf/([a-z]+).proto @org_golang_google_protobuf//types/known/${1}pb"
- "google/protobuf/(field_mask).proto @org_golang_google_protobuf//types/known/fieldmaskpb"
- "google/protobuf/(descriptor|plugin).proto @org_golang_google_protobuf//types/${1}pb"
languages:
- name: descriptor
plugins:
- cpp
rules:
- proto_descriptor_set
enabled: false
- name: go
plugins:
- protoc-gen-go
- protoc-gen-go-grpc
rules:
- proto_compile
- proto_go_library
enabled: false