-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
83 lines (57 loc) · 2.5 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
workspace(name = "build_stack_bazel_aquery_differ")
load("//:repositories.bzl", "repositories")
repositories()
# ----------------------------------------------------
# @rules_proto
# ----------------------------------------------------
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies")
rules_proto_dependencies()
# ----------------------------------------------------
# @io_bazel_rules_go
# ----------------------------------------------------
load(
"@io_bazel_rules_go//go:deps.bzl",
"go_register_toolchains",
"go_rules_dependencies",
)
go_rules_dependencies()
go_register_toolchains(version = "1.18.2")
# ----------------------------------------------------
# @bazel_gazelle
# ----------------------------------------------------
# gazelle:repository_macro go_repositories.bzl%go_repositories
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()
# ----------------------------------------------------
# @build_stack_rules_proto
# ----------------------------------------------------
register_toolchains("@build_stack_rules_proto//toolchain:standard")
# defining go_repository for @org_golang_google_grpc this in the WORKSPACE
# It must occur before gazelle_protobuf_extension_go_deps() macro call.
# I don't understand this one... Despite 'bazel query //external:org_golang_google_grpc --output build'
# saying it's still coming from go_repos.bzl, that does not appear to be the case.
# Without this override org_golang_google_grpc is falling back to 1.27.0.
#go_repository(
# name = "org_golang_google_grpc",
# build_file_proto_mode = "disable_global",
# importpath = "google.golang.org/grpc",
# sum = "h1:XT2/MFpuPFsEX2fWh3YQtHkZ+WYZFQRfaUgLZYj/p6A=",
# version = "v1.42.0",
#)
# ----------------------------------------------------
# @build_stack_rules_proto
# ----------------------------------------------------
load("@build_stack_rules_proto//:go_deps.bzl", "gazelle_protobuf_extension_go_deps")
gazelle_protobuf_extension_go_deps()
load("@build_stack_rules_proto//deps:go_core_deps.bzl", "go_core_deps")
go_core_deps()
# ----------------------------------------------------
# external go dependencies
# ----------------------------------------------------
load("//:go_repositories.bzl", "go_repositories")
go_repositories()
# ----------------------------------------------------
# external protobuf dependencies
# ----------------------------------------------------
load("//:proto_repositories.bzl", "proto_repositories")
proto_repositories()