blob: 83c4966fc600ba501c49238489a8acdd7540e427 [file] [log] [blame]
Tim Windelschmidt961a7cc2024-01-13 21:00:02 +01001###############################################################################
2# Bazel now uses Bzlmod by default to manage external dependencies.
3# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
4#
5# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
6###############################################################################
7
Tim Windelschmidt94209ed2024-07-10 19:38:01 +02008bazel_dep(name = "platforms")
Tim Windelschmidt961a7cc2024-01-13 21:00:02 +01009single_version_override(
10 module_name = "platforms",
Tim Windelschmidt94209ed2024-07-10 19:38:01 +020011 version = "0.0.10",
Tim Windelschmidt961a7cc2024-01-13 21:00:02 +010012 patches = [
13 "//third_party:platforms-add-uefi.patch",
14 ],
15 patch_strip = 1,
16)
17
Tim Windelschmidt94209ed2024-07-10 19:38:01 +020018bazel_dep(name = "bazel_skylib", version = "1.7.1")
19bazel_dep(name = "rules_pkg", version = "0.10.1")
20bazel_dep(name = "rules_oci", version = "1.7.6")
21bazel_dep(name = "aspect_bazel_lib", version = "2.7.8")
Tim Windelschmidt44fdf7f2024-07-03 20:30:43 +020022bazel_dep(name = "rules_multirun", version = "0.9.0")
Tim Windelschmidt961a7cc2024-01-13 21:00:02 +010023
24oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
25
26# Declare external images you need to pull, for example:
27oci.pull(
28 name = "distroless_base",
29 # 'latest' is not reproducible, but it's convenient.
30 # During the build we print a WARNING message that includes recommended 'digest' and 'platforms'
31 # values which you can use here in place of 'tag' to pin for reproducibility.
32 digest = "sha256:6c1e34e2f084fe6df17b8bceb1416f1e11af0fcdb1cef11ee4ac8ae127cb507c",
33 image = "gcr.io/distroless/base",
34 platforms = ["linux/amd64", "linux/arm64/v8"],
35)
36
37# For each oci.pull call, repeat the "name" here to expose them as dependencies.
38use_repo(oci, "distroless_base")