-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathMODULE.bazel
More file actions
96 lines (87 loc) · 3.44 KB
/
Copy pathMODULE.bazel
File metadata and controls
96 lines (87 loc) · 3.44 KB
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
module(name = "com_github_buildbarn_bb_remote_asset")
bazel_dep(name = "bazel_remote_apis", version = "0.0.0")
bazel_dep(name = "com_github_buildbarn_bb_storage")
bazel_dep(name = "gazelle", version = "0.51.3")
bazel_dep(name = "googleapis", version = "0.0.0-20260109-6145b5ff")
bazel_dep(name = "jsonnet_go", version = "0.22.0")
bazel_dep(name = "protobuf", version = "35.1")
bazel_dep(name = "rules_go", version = "0.62.0")
bazel_dep(name = "rules_jsonnet", version = "0.7.2")
bazel_dep(name = "rules_proto", version = "7.1.0")
bazel_dep(name = "toolchains_llvm", version = "1.8.0")
bazel_dep(name = "cel-spec", version = "0.25.1")
bazel_dep(name = "protoc-gen-validate", version = "1.3.3")
git_override(
module_name = "bazel_remote_apis",
commit = "b02e15a6d354e2fb553216132ccec79f3f5b39cb",
remote = "https://github.com/bazelbuild/remote-apis.git",
)
git_override(
module_name = "com_github_buildbarn_bb_storage",
commit = "dc342e1799d72bd927ffc0af1f429e7044118b07",
patches = [
"//:patches/com_buildbarn_bb_storage/workflows.diff",
],
remote = "https://github.com/buildbarn/bb-storage.git",
)
single_version_override(
module_name = "gazelle",
patches = ["//:patches/gazelle/dont-flatten-srcs.diff"],
)
single_version_override(
module_name = "toolchains_llvm",
patches = ["//:patches/toolchains_llvm/non-root.diff"],
)
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.from_file(go_mod = "//:go.mod")
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
use_repo(
go_deps,
"cc_mvdan_gofumpt",
"com_github_bazelbuild_buildtools",
"com_github_golang_mock",
"com_github_prometheus_client_golang",
"com_github_stretchr_testify",
"org_golang_google_genproto_googleapis_rpc",
"org_golang_google_grpc",
"org_golang_google_protobuf",
"org_golang_x_lint",
)
go_deps_dev = use_extension("@gazelle//:extensions.bzl", "go_deps", dev_dependency = True)
go_deps_dev.gazelle_override(
build_file_generation = "on",
path = "github.com/cncf/xds/go",
)
go_deps_dev.module_override(
patches = ["@com_github_buildbarn_bb_storage//:patches/com_github_grpc_ecosystem_go_grpc_prometheus/client-metrics-prevent-handled-twice.diff"],
path = "github.com/grpc-ecosystem/go-grpc-prometheus",
)
go_deps_dev.module_override(
patches = ["@com_github_buildbarn_bb_storage//:patches/org_golang_google_genproto_googleapis_bytestream/service-registrar.diff"],
path = "google.golang.org/genproto/googleapis/bytestream",
)
go_deps_dev.module_override(
patches = ["@com_github_buildbarn_bb_storage//:patches/org_golang_x_lint/generic.diff"],
path = "golang.org/x/lint",
)
go_deps_dev.module_override(
patches = ["@com_github_buildbarn_bb_storage//:patches/org_golang_x_oauth2/injectable-clock.diff"],
path = "golang.org/x/oauth2",
)
go_deps_dev.module_override(
patches = ["@com_github_buildbarn_bb_storage//:patches/org_golang_x_sys/o-search.diff"],
path = "golang.org/x/sys",
)
go_deps_dev.module_override(
patches = [
"@com_github_buildbarn_bb_storage//:patches/org_uber_go_mock/generics.diff",
"@com_github_buildbarn_bb_storage//:patches/org_uber_go_mock/mocks-for-funcs.diff",
],
path = "go.uber.org/mock",
)
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True)
llvm.toolchain(
llvm_version = "17.0.6",
)
use_repo(llvm, "llvm_toolchain_llvm")