You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bazel_dep(name="rules_oci", version="2.0.1")
# For testing, we also recommend https://registry.bazel.build/modules/container_structure_testoci=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.tag="latest",
image="gcr.io/distroless/base",
platforms= ["linux/amd64"],
)
# For each oci.pull call, repeat the "name" here to expose them as dependencies.use_repo(oci, "distroless_base")
I get the following warning:
WARNING: REPO/MODULE.bazel:320:20: The module extension oci defined in @rules_oci//oci:extensions.bzl reported incorrect imports of repositories via use_repo():
Imported, but reported as indirect dependencies by the extension:
distroless_base
** You can use the following buildozer command to fix these issues:
buildozer 'use_repo_remove @rules_oci//oci:extensions.bzl oci distroless_base' //MODULE.bazel:all
When running bazel mod tidy, it adds distroless_base_linux_amd64 which should not be necessary as distroless_base should be used instead (and this is also what I use in my BUILD.bazel files.
The text was updated successfully, but these errors were encountered:
When following the instructions from the release:
I get the following warning:
When running
bazel mod tidy
, it addsdistroless_base_linux_amd64
which should not be necessary asdistroless_base
should be used instead (and this is also what I use in myBUILD.bazel
files.The text was updated successfully, but these errors were encountered: