-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
65 lines (54 loc) · 2.2 KB
/
WORKSPACE
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
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "f2dcd210c7095febe54b804bb1cd3a58fe8435a909db2ec04e31542631cf715c",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.31.0/rules_go-v0.31.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.31.0/rules_go-v0.31.0.zip",
],
)
http_archive(
name = "bazel_gazelle",
sha256 = "62ca106be173579c0a167deb23358fdfe71ffa1e4cfdddf5582af26520f1c66f",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.23.0/bazel-gazelle-v0.23.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.23.0/bazel-gazelle-v0.23.0.tar.gz",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("//bazel:deps.bzl", "go_dependencies")
# Before loading Go dependencies, override with our own (newer) versions
http_archive(
name = "go_googleapis",
patch_args = [
"-E",
"-p1",
],
patches = [
"//bazel:go_googleapis-deletebuild.patch",
"//bazel:go_googleapis-directives.patch",
"//bazel:go_googleapis-gazelle.patch",
],
sha256 = "a8c632ea9155c7328c48cae8424bc489378c8c014886838e6aef44598bc23772",
strip_prefix = "googleapis-dfd09631f62640cca09cbbe7f1118e620e4abccf",
urls = [
"https://github.com/googleapis/googleapis/archive/dfd09631f62640cca09cbbe7f1118e620e4abccf.zip",
],
)
# gazelle:repository_macro bazel/deps.bzl%go_dependencies
go_dependencies()
go_rules_dependencies()
go_register_toolchains(version = "1.17.6")
gazelle_dependencies()
http_archive(
name = "com_google_protobuf",
sha256 = "8b28fdd45bab62d15db232ec404248901842e5340299a57765e48abe8a80d930",
strip_prefix = "protobuf-3.20.1",
urls = [
"https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.20.1.tar.gz",
"https://github.com/protocolbuffers/protobuf/archive/v3.20.1.tar.gz",
],
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()