0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-02-28 10:34:06 +00:00
renovatebot_renovate/lib/modules/manager/bazel-module
2025-02-26 14:18:38 +00:00
..
__fixtures__/extract/multiple-bazelrcs fix(manager/bazel-module): skip non-local .bazelrc imports (#23383) 2023-07-17 08:35:40 +00:00
parser test: migrate to vitest (#34475) 2025-02-26 09:35:54 +00:00
bazelrc.spec.ts test: migrate to vitest (#34475) 2025-02-26 09:35:54 +00:00
bazelrc.ts build(deps): update dependency prettier to v3 (#23627) 2023-11-07 17:12:01 +00:00
extract.spec.ts test: migrate from jest to vitest (#34499) 2025-02-26 14:18:38 +00:00
extract.ts refactor(bazel-module): Move files that support parsing to ./parser (#34299) 2025-02-20 07:15:32 +00:00
index.ts feat(bazel-module): Support *.MODULE.bazel (#33211) 2024-12-20 13:23:37 +00:00
readme.md feat(bazel-module): add support for oci.pull (#32453) 2024-12-05 16:26:35 +00:00
rules.spec.ts test(bazel-module): do not rely on fragments to test rules (#34298) 2025-02-20 09:44:32 +00:00
rules.ts refactor(bazel-module): Move files that support parsing to ./parser (#34299) 2025-02-20 07:15:32 +00:00

The bazel-module manager can update Bazel module (bzlmod) enabled workspaces.

Maven

It also takes care about maven artifacts initalized with bzlmod. For simplicity the name of extension variable is limited to maven*. E.g.:

maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven_1 = use_extension("@rules_jvm_external//:extensions.bzl", "maven")

Both install and artifact methods are supported:

maven.install(
    artifacts = [
        "org.seleniumhq.selenium:selenium-java:4.4.0",
    ],
)

maven.artifact(
    artifact = "javapoet",
    group = "com.squareup",
    neverlink = True,
    version = "1.11.1",
)

Docker

Similarly, it updates Docker / OCI images pulled with oci_pull.

Note that the extension must be called oci:

oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")

oci.pull(
    name = "nginx_image",
    digest = "sha256:287ff321f9e3cde74b600cc26197424404157a72043226cbbf07ee8304a2c720",
    image = "index.docker.io/library/nginx",
    platforms = ["linux/amd64"],
    tag = "1.27.1",
)