Skip to content

Automated Dependency Updates for Bazel

Categories: bazel

Renovate supports updating Bazel dependencies.

File Matching

By default, Renovate will check any files matching any of the following regular expressions:

/(^|/)WORKSPACE(|\.bazel|\.bzlmod)$/
/\.WORKSPACE\.bazel$/
/\.bzl$/

For details on how to extend a manager's managerFilePatterns value, please follow this link.

Supported datasources

This manager supports extracting the following datasources: docker, github-releases, github-tags, go.

Dependency types

This manager extracts the following depType values:

depType Description
container_pull A Docker container image pulled via container_pull
_container_pull A Docker container image pulled via the private _container_pull rule
git_repository A Git repository dependency via git_repository
_git_repository A Git repository dependency via the private _git_repository rule
new_git_repository A Git repository with a custom BUILD file via new_git_repository
_new_git_repository A Git repository with a custom BUILD file via the private _new_git_repository rule
go_repository A Go module dependency via go_repository
_go_repository A Go module dependency via the private _go_repository rule
http_archive An archive downloaded over HTTP via http_archive
_http_archive An archive downloaded over HTTP via the private _http_archive rule
http_file A file downloaded over HTTP via http_file
_http_file A file downloaded over HTTP via the private _http_file rule
oci_pull An OCI container image pulled via oci_pull
_oci_pull An OCI container image pulled via the private _oci_pull rule
maven_install A Maven artifact installed via maven_install
_maven_install A Maven artifact installed via the private _maven_install rule

Default config

{
  "managerFilePatterns": [
    "/(^|/)WORKSPACE(|\\.bazel|\\.bzlmod)$/",
    "/\\.WORKSPACE\\.bazel$/",
    "/\\.bzl$/"
  ]
}

Additional Information

Bazel is quite unlike most other "package managers" that Renovate supports, which usually focus on a particular ecosystem like JavaScript, Ruby or Docker. Instead, Bazel is a build tool so supports a multitude of languages/datasources. Renovate does not support all possible Bazel references, although would like to, and feature requests are welcome.

If you need to change the versioning format, read the versioning documentation to learn more.