Repository navigation
Expand file tree
/
Copy pathMODULE.bazel
More file actions
151 lines (136 loc) · 5.31 KB
/
Copy pathMODULE.bazel
File metadata and controls
151 lines (136 loc) · 5.31 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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
module(name = "com_github_buildbarn_bb_remote_execution")
bazel_dep(name = "aspect_bazel_lib", version = "2.22.5")
bazel_dep(name = "aspect_rules_js", version = "3.6.1")
bazel_dep(name = "bazel_remote_apis", version = "0")
bazel_dep(name = "bazel_skylib", version = "1.9.2")
bazel_dep(name = "cel-spec", version = "0.25.3")
bazel_dep(name = "com_github_buildbarn_bb_storage")
bazel_dep(name = "com_github_buildbarn_go_xdr")
bazel_dep(name = "gazelle", version = "0.54.0")
bazel_dep(name = "googleapis", version = "0.0.0-20261103-57aa4dbc")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "protobuf", version = "36.2")
bazel_dep(name = "rules_go", version = "0.65.0")
bazel_dep(name = "rules_jsonnet", version = "0.7.2")
bazel_dep(name = "toolchains_llvm", version = "1.13.0")
git_override(
module_name = "bazel_remote_apis",
commit = "e0c0554bfc8a37abf336c3e78070684367738e1d",
remote = "https://github.com/bazelbuild/remote-apis.git",
)
git_override(
module_name = "com_github_buildbarn_bb_storage",
commit = "c307abb24d8705c1057eb27d27e79a2d24747b6d",
remote = "https://github.com/buildbarn/bb-storage.git",
)
git_override(
module_name = "com_github_buildbarn_go_xdr",
commit = "a2095890273efee7f8bb2b0007914f8b66398c57",
remote = "https://github.com/buildbarn/go-xdr.git",
)
git_override(
module_name = "rules_antlr",
commit = "89a29cca479363a5aee53e203719510bdc6be6ff",
patches = [
"//:patches/rules_antlr/antlr-4.10.diff",
"//:patches/rules_antlr/bzlmod.diff",
"//:patches/rules_antlr/load.diff",
],
remote = "https://github.com/marcohu/rules_antlr.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_protobuf",
"com_github_google_uuid",
"com_github_gorilla_mux",
"com_github_hanwen_go_fuse_v2",
"com_github_kballard_go_shellquote",
"com_github_prometheus_client_golang",
"com_github_spf13_pflag",
"com_github_stretchr_testify",
"com_github_winfsp_go_winfsp",
"com_google_cloud_go_longrunning",
"io_opentelemetry_go_otel",
"io_opentelemetry_go_otel_trace",
"org_golang_google_genproto_googleapis_rpc",
"org_golang_google_grpc",
"org_golang_google_protobuf",
"org_golang_x_lint",
"org_golang_x_sync",
"org_golang_x_sys",
"org_uber_go_mock",
)
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(
# Backport of https://github.com/hanwen/go-fuse/commit/2d50fff207d78c197869fa492eff3a79bc1d8408.
# Remove once a go-fuse release newer than v2.12.1 is available.
patches = ["//:patches/com_github_hanwen_go_fuse_v2/splice-386.diff"],
path = "github.com/hanwen/go-fuse/v2",
)
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/cc_mvdan_gofumpt/unused-receiver-idents.diff"],
path = "mvdan.cc/gofumpt",
)
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",
)
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_github_twbs_bootstrap",
build_file_content = """exports_files(["css/bootstrap.min.css", "js/bootstrap.min.js"])""",
sha256 = "395342b2974e3350560e65752d36aab6573652b11cc6cb5ef79a2e5e83ad64b1",
strip_prefix = "bootstrap-5.1.0-dist",
urls = ["https://github.com/twbs/bootstrap/releases/download/v5.1.0/bootstrap-5.1.0-dist.zip"],
)
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True)
llvm.toolchain(
llvm_version = "17.0.6",
)
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
npm.npm_translate_lock(
name = "com_github_buildbarn_bb_remote_execution_npm",
pnpm_lock = "//:pnpm-lock.yaml",
)
use_repo(npm, "com_github_buildbarn_bb_remote_execution_npm")
http_archive(
name = "com_github_winfsp_winfsp_tests",
build_file_content = """
filegroup(
name = "winfsp_tests_x64",
srcs = ["winfsp-tests-x64.exe"],
visibility = ["//visibility:public"],
)
""",
integrity = "sha256-DPxoeRcDyA+Wxynr04tjGH3lPhm6ocYDpwWdbqh8X1I=",
url = "https://github.com/winfsp/winfsp/releases/download/v2.1/winfsp-tests-2.1.25156.zip",
)