renovate/lib/modules/manager/bazel-module
Markus Hofbauer 1743d81448
feat(bazel-module): Support *.MODULE.bazel (#33211)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-12-20 13:23:37 +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 feat(bazel-module): add support for oci.pull (#32453) 2024-12-05 16:26:35 +00:00
bazelrc.spec.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
bazelrc.ts build(deps): update dependency prettier to v3 (#23627) 2023-11-07 17:12:01 +00:00
context.spec.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
context.ts feat: initial implementation of `bazel-module` manager (#21893) 2023-05-20 05:34:30 +00:00
extract.spec.ts feat(bazel-module): add support for oci.pull (#32453) 2024-12-05 16:26:35 +00:00
extract.ts feat(bazel-module): add support for oci.pull (#32453) 2024-12-05 16:26:35 +00:00
fragments.spec.ts feat: initial implementation of `bazel-module` manager (#21893) 2023-05-20 05:34:30 +00:00
fragments.ts feat(bazel-module): Add support of maven methods (#30884) 2024-08-22 13:15:51 +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 chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
rules.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
starlark.spec.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
starlark.ts feat: initial implementation of `bazel-module` manager (#21893) 2023-05-20 05:34:30 +00:00

readme.md

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",
)