-
Notifications
You must be signed in to change notification settings - Fork 9
/
MODULE.bazel
116 lines (95 loc) · 3.78 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
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
###############################################################################
# Bazel now uses Bzlmod by default to manage external dependencies.
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
#
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
###############################################################################
# NOTE: When editing this file, also update the lockfile.
# bazel mod deps --lockfile_mode=update
bazel_dep(name = "platforms")
single_version_override(
module_name = "platforms",
patch_strip = 1,
patches = [
"//third_party:platforms-add-uefi.patch",
],
version = "0.0.10",
)
bazel_dep(name = "rules_go", repo_name = "io_bazel_rules_go")
single_version_override(
module_name = "rules_go",
patch_strip = 1,
patches = [
"//third_party/go/patches:rules_go_absolute_embedsrc.patch",
],
version = "0.50.1",
)
bazel_dep(name = "gazelle", repo_name = "bazel_gazelle")
single_version_override(
module_name = "gazelle",
patch_strip = 1,
patches = [
"//third_party/gazelle:add-prepatching.patch",
],
version = "0.39.0",
)
bazel_dep(name = "rules_rust")
single_version_override(
module_name = "rules_rust",
patch_strip = 1,
patches = [
"//third_party/rules_rust:rust-uefi-platform.patch",
"//third_party/rules_rust:rust-prost-nostd.patch",
"//third_party/rules_rust:rust-reproducibility.patch",
"//third_party/rules_rust:Add-extra_rustc_flags-to-module-extension.patch",
],
version = "0.53.0",
)
bazel_dep(name = "zlib")
single_version_override(
module_name = "zlib",
version = "1.3.1",
)
# Fix bazel 7.2 compatibility https://github.com/grpc/grpc-java/issues/11275
# This is coming from the grpc dependency.
# ├───[email protected]
# │ ├───[email protected]
# │ │ └───[email protected]
single_version_override(
module_name = "grpc-java",
version = "1.66.0",
)
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "rules_pkg", version = "1.0.1")
bazel_dep(name = "rules_oci", version = "2.0.0")
bazel_dep(name = "aspect_bazel_lib", version = "2.9.0")
bazel_dep(name = "rules_multirun", version = "0.9.0")
bazel_dep(name = "rules_python", version = "0.36.0")
bazel_dep(name = "rules_cc", version = "0.0.10")
bazel_dep(name = "grpc", version = "1.66.0")
bazel_dep(name = "rules_proto", version = "6.0.2")
bazel_dep(name = "toolchains_protoc", version = "0.3.3")
# Currently supported version are listed here:
# https://protobuf.dev/support/version-support/
bazel_dep(name = "protobuf", version = "28.3")
# Load musl toolchain Metropolis sysroot tarball into external repository.
musl_sysroot_rule = use_repo_rule("//build/toolchain/musl-host-gcc:sysroot_repository.bzl", "musl_sysroot_rule")
musl_sysroot_rule(
name = "musl_sysroot",
snapshot = "//build/toolchain/musl-host-gcc:sysroot.tar.xz",
)
# Register our custom CC toolchains. Order matters - more specific toolchains must be registered first.
# (host_cc_toolchain won't care about //build/platforms/linkmode, but musl_host_toolchain won't
# match anything unless its linkmode is set).
register_toolchains("//build/toolchain/musl-host-gcc:musl_host_toolchain")
register_toolchains("//build/toolchain/llvm-efi:efi_k8_toolchain")
register_toolchains("//build/toolchain:host_cc_toolchain")
# Rust Toolchains
register_toolchains("@rust_toolchains//:all")
# Protobuf Toolchains
register_toolchains("@rules_rust//proto/protobuf:default-proto-toolchain")
register_toolchains("//build/rust:prost_efi_toolchain")
include("//build/bazel:rust.MODULE.bazel")
include("//build/bazel:go.MODULE.bazel")
include("//build/bazel:oci.MODULE.bazel")
include("//build/bazel:third_party.MODULE.bazel")