-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrepositories.bzl
135 lines (121 loc) · 4.76 KB
/
repositories.bzl
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def _maybe(repo_rule, name, **kwargs):
if name not in native.existing_rules():
repo_rule(name = name, **kwargs)
def protobuf_deps():
bazel_skylib() # via com_google_protobuf
rules_python() # via com_google_protobuf
zlib() # via com_google_protobuf
com_google_protobuf() # via <TOP>
def grpc_deps():
build_bazel_rules_swift() # via com_github_grpc_grpc
bazel_skylib() # via com_google_protobuf
rules_python() # via com_google_protobuf
zlib() # via com_google_protobuf
com_google_protobuf() # via com_github_grpc_grpc
com_github_grpc_grpc() # via <TOP>
def build_stack_rules_proto():
# Commit: 09b3a3acd63b5d1acf9586dda629f6a58a0ca882
# Date: 2021-06-01 21:24:19 +0000 UTC
# URL: https://github.com/stackb/rules_proto/commit/09b3a3acd63b5d1acf9586dda629f6a58a0ca882
#
# Add SkipIntegration case field
# Size: 247873 (248 kB)
_maybe(
http_archive,
name = "build_stack_rules_proto",
sha256 = "3cb92a553a1166f3eabae4cd883b82b67da5d2e06d92fb0828d3f3115749f2f4",
strip_prefix = "rules_proto-09b3a3acd63b5d1acf9586dda629f6a58a0ca882",
urls = ["https://github.com/stackb/rules_proto/archive/09b3a3acd63b5d1acf9586dda629f6a58a0ca882.tar.gz"],
)
def io_bazel_rules_go():
_maybe(
http_archive,
name = "io_bazel_rules_go",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz",
],
)
def bazel_gazelle():
_maybe(
http_archive,
name = "bazel_gazelle",
sha256 = "7359a9a7071dff5343a52626fce1aae2a78936d3004ef89d038daaefd3fd6608",
strip_prefix = "bazel-gazelle-e4496b956eb46bdf8c9bf95b8d1d85e3a086c4be",
urls = [
"https://github.com/bazelbuild/bazel-gazelle/archive/e4496b956eb46bdf8c9bf95b8d1d85e3a086c4be.tar.gz",
],
)
def rules_proto():
_maybe(
http_archive,
name = "rules_proto",
sha256 = "9fc210a34f0f9e7cc31598d109b5d069ef44911a82f507d5a88716db171615a8",
strip_prefix = "rules_proto-f7a30f6f80006b591fa7c437fe5a951eb10bcbcf",
urls = [
"https://github.com/bazelbuild/rules_proto/archive/f7a30f6f80006b591fa7c437fe5a951eb10bcbcf.tar.gz",
],
)
def bazel_skylib():
_maybe(
http_archive,
name = "bazel_skylib",
sha256 = "ebdf850bfef28d923a2cc67ddca86355a449b5e4f38b0a70e584dc24e5984aa6",
strip_prefix = "bazel-skylib-f80bc733d4b9f83d427ce3442be2e07427b2cc8d",
urls = [
"https://github.com/bazelbuild/bazel-skylib/archive/f80bc733d4b9f83d427ce3442be2e07427b2cc8d.tar.gz",
],
)
def rules_python():
_maybe(
http_archive,
name = "rules_python",
sha256 = "8cc0ad31c8fc699a49ad31628273529ef8929ded0a0859a3d841ce711a9a90d5",
strip_prefix = "rules_python-c7e068d38e2fec1d899e1c150e372f205c220e27",
urls = [
"https://github.com/bazelbuild/rules_python/archive/c7e068d38e2fec1d899e1c150e372f205c220e27.tar.gz",
],
)
def zlib():
_maybe(
http_archive,
name = "zlib",
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
strip_prefix = "zlib-1.2.11",
urls = [
"https://mirror.bazel.build/zlib.net/zlib-1.2.11.tar.gz",
"https://zlib.net/zlib-1.2.11.tar.gz",
],
build_file = "@build_stack_rules_proto//third_party:zlib.BUILD",
)
def com_google_protobuf():
_maybe(
http_archive,
name = "com_google_protobuf",
sha256 = "d0f5f605d0d656007ce6c8b5a82df3037e1d8fe8b121ed42e536f569dec16113",
strip_prefix = "protobuf-3.14.0",
urls = [
"https://github.com/protocolbuffers/protobuf/archive/v3.14.0.tar.gz",
],
)
def com_github_grpc_grpc():
_maybe(
http_archive,
name = "com_github_grpc_grpc",
sha256 = "e6c6b1ac9ba2257c93e49c98ef4fc96b2e2a1cdd90782a919f60e23fa8c2428b",
strip_prefix = "grpc-5f759fcd1f602b38004b948b071f8b5726a9a4b1",
urls = [
"https://github.com/grpc/grpc/archive/5f759fcd1f602b38004b948b071f8b5726a9a4b1.tar.gz",
],
)
def build_bazel_rules_swift():
_maybe(
http_archive,
name = "build_bazel_rules_swift",
sha256 = "1f5499bb053736cda8905d89aac42e98011bbe9ca93b774a40c04759f045d7bf",
strip_prefix = "rules_swift-dadd12190182530cf6f91ca7f9e70391644ce502",
urls = [
"https://github.com/bazelbuild/rules_swift/archive/dadd12190182530cf6f91ca7f9e70391644ce502.tar.gz",
],
)