-
-
Notifications
You must be signed in to change notification settings - Fork 159
/
MODULE.bazel
107 lines (90 loc) · 3.17 KB
/
MODULE.bazel
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
bazel_dep(name = "buildifier_prebuilt", version = "7.3.1")
bazel_dep(name = "gazelle", version = "0.40.0")
bazel_dep(name = "rules_go", version = "0.50.1")
bazel_dep(name = "rules_proto", version = "6.0.2")
# Rulegen deps
rulegen_go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
rulegen_go_deps.module(
path = "github.com/urfave/cli",
sum = "h1:wYSSj06510qPIzGSua9ZqsncMmWE3Zr55KBERygyrxE=",
version = "v1.21.0",
)
use_repo(rulegen_go_deps, "com_github_urfave_cli")
# Local overrides
bazel_dep(name = "rules_proto_grpc", version = "0.0.0.rpg.version.placeholder")
local_path_override(
module_name = "rules_proto_grpc",
path = "modules/core",
)
bazel_dep(name = "rules_proto_grpc_example_protos", version = "0.0.0.rpg.version.placeholder")
local_path_override(
module_name = "rules_proto_grpc_example_protos",
path = "modules/example_protos",
)
# Buf
bazel_dep(name = "rules_proto_grpc_buf", version = "0.0.0.rpg.version.placeholder")
local_path_override(
module_name = "rules_proto_grpc_buf",
path = "modules/buf",
)
# C
bazel_dep(name = "rules_proto_grpc_c", version = "0.0.0.rpg.version.placeholder")
local_path_override(
module_name = "rules_proto_grpc_c",
path = "modules/c",
)
bazel_dep(name = "protobuf", version = "27.1")
# C++
bazel_dep(name = "rules_proto_grpc_cpp", version = "0.0.0.rpg.version.placeholder")
local_path_override(
module_name = "rules_proto_grpc_cpp",
path = "modules/cpp",
)
bazel_dep(name = "toolchains_protoc", version = "0.3.1")
# Prevent version skew by matching protoc version to protobuf version, as C++ is the only lang that
# has no cross-version runtime guarantee:
# https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp
protoc = use_extension("@toolchains_protoc//protoc:extensions.bzl", "protoc")
protoc.toolchain(
google_protobuf = "com_google_protobuf",
version = "v27.1",
)
# Documentation
bazel_dep(name = "rules_proto_grpc_doc", version = "0.0.0.rpg.version.placeholder")
local_path_override(
module_name = "rules_proto_grpc_doc",
path = "modules/doc",
)
# Go
bazel_dep(name = "rules_proto_grpc_go", version = "0.0.0.rpg.version.placeholder")
local_path_override(
module_name = "rules_proto_grpc_go",
path = "modules/go",
)
# gRPC-Gateway
bazel_dep(name = "rules_proto_grpc_grpc_gateway", version = "0.0.0.rpg.version.placeholder")
local_path_override(
module_name = "rules_proto_grpc_grpc_gateway",
path = "modules/grpc_gateway",
)
# Java
bazel_dep(name = "rules_proto_grpc_java", version = "0.0.0.rpg.version.placeholder")
local_path_override(
module_name = "rules_proto_grpc_java",
path = "modules/java",
)
# Objective-C
bazel_dep(name = "rules_proto_grpc_objc", version = "0.0.0.rpg.version.placeholder")
local_path_override(
module_name = "rules_proto_grpc_objc",
path = "modules/objc",
)
# Python
bazel_dep(name = "rules_proto_grpc_python", version = "0.0.0.rpg.version.placeholder")
local_path_override(
module_name = "rules_proto_grpc_python",
path = "modules/python",
)
bazel_dep(name = "rules_python", version = "0.37.2")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = "3.11")