WORKSPACE: bump bazel to 7.0.0
Change-Id: Ic074b7b83f229e3c7f6ace7fdb46d33e5bd7c37b
Reviewed-on: https://review.monogon.dev/c/monogon/+/2708
Reviewed-by: Serge Bazanski <serge@monogon.tech>
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/MODULE.bazel b/MODULE.bazel
new file mode 100644
index 0000000..9348a9b
--- /dev/null
+++ b/MODULE.bazel
@@ -0,0 +1,36 @@
+###############################################################################
+# 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
+###############################################################################
+
+bazel_dep(name = "platforms", version = "0.0.8")
+single_version_override(
+ module_name = "platforms",
+ version = "0.0.8",
+ patches = [
+ "//third_party:platforms-add-uefi.patch",
+ ],
+ patch_strip = 1,
+)
+
+bazel_dep(name = "bazel_skylib", version = "1.5.0")
+bazel_dep(name = "rules_pkg", version = "0.9.1")
+bazel_dep(name = "rules_oci", version = "1.6.0")
+
+oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
+
+# Declare external images you need to pull, for example:
+oci.pull(
+ name = "distroless_base",
+ # 'latest' is not reproducible, but it's convenient.
+ # During the build we print a WARNING message that includes recommended 'digest' and 'platforms'
+ # values which you can use here in place of 'tag' to pin for reproducibility.
+ digest = "sha256:6c1e34e2f084fe6df17b8bceb1416f1e11af0fcdb1cef11ee4ac8ae127cb507c",
+ image = "gcr.io/distroless/base",
+ platforms = ["linux/amd64", "linux/arm64/v8"],
+)
+
+# For each oci.pull call, repeat the "name" here to expose them as dependencies.
+use_repo(oci, "distroless_base")
\ No newline at end of file