-
Notifications
You must be signed in to change notification settings - Fork 4
/
MODULE.bazel
87 lines (79 loc) · 2.95 KB
/
MODULE.bazel
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
"""
Build rules for buildbarn portal
"""
module(name = "com_github_buildbarn_bb_portal")
bazel_dep(name = "bazel_remote_apis", version = "0.0.0")
bazel_dep(name = "com_github_buildbarn_bb_storage")
bazel_dep(name = "gazelle", version = "0.38.0")
bazel_dep(name = "googleapis", version = "0.0.0-20240819-fe8ba054a")
bazel_dep(name = "googletest", version = "1.15.2")
bazel_dep(name = "protobuf", version = "27.3")
bazel_dep(name = "rules_go", version = "0.50.1")
bazel_dep(name = "rules_jsonnet", version = "0.6.0")
bazel_dep(name = "rules_oci", version = "1.8.0")
bazel_dep(name = "toolchains_llvm", version = "1.1.2")
git_override(
module_name = "bazel_remote_apis",
commit = "de1d77b12feb81f96909f0410991c3c966d9d8e7",
remote = "https://github.com/bazelbuild/remote-apis.git",
)
git_override(
module_name = "com_github_buildbarn_bb_storage",
commit = "0941111f29e31905e4081e6262bccf0c123940ed",
patches = [
"//:patches/com_buildbarn_bb_storage/base_image.diff",
"//:patches/com_buildbarn_bb_storage/workflows_template.diff",
],
remote = "https://github.com/buildbarn/bb-storage.git",
)
git_override(
module_name = "gazelle",
commit = "4d0129d7adae33e8e648d3624aff8fa8f93f375b",
patches = [
"//:patches/gazelle/bazel-remote-apis.diff",
"//:patches/gazelle/dont-flatten-srcs.diff",
],
remote = "https://github.com/bazelbuild/bazel-gazelle.git",
)
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.23.0")
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.gazelle_override(
build_file_generation = "on",
directives = [
"gazelle:resolve go github.com/bazelbuild/remote-apis/build/bazel/remote/execution/v2 @bazel_remote_apis//build/bazel/remote/execution/v2:remote_execution_go_proto",
"gazelle:resolve go github.com/bazelbuild/remote-apis/build/bazel/semver @bazel_remote_apis//build/bazel/semver:semver_go_proto",
],
path = "github.com/bazelbuild/remote-apis-sdks",
)
go_deps.from_file(go_mod = "//:go.mod")
use_repo(
go_deps,
"cc_mvdan_gofumpt",
"com_github_99designs_gqlgen",
"com_github_bazelbuild_buildtools",
"com_github_bazelbuild_remote_apis_sdks",
"com_github_fsnotify_fsnotify",
"com_github_google_uuid",
"com_github_gorilla_mux",
"com_github_hashicorp_go_multierror",
"com_github_hedwigz_entviz",
"com_github_machinebox_graphql",
"com_github_mattn_go_sqlite3",
"com_github_pkg_errors",
"com_github_stretchr_testify",
"com_github_vektah_gqlparser_v2",
"io_entgo_contrib",
"io_entgo_ent",
"org_golang_google_api",
"org_golang_google_genproto",
"org_golang_google_grpc",
"org_golang_google_protobuf",
"org_golang_x_lint",
"org_golang_x_sync",
)
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True)
llvm.toolchain(
llvm_version = "14.0.0",
)
use_repo(llvm, "llvm_toolchain_llvm")