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)$
\.bzl$

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

Supported datasources

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

Default config

{
  "fileMatch": [
    "(^|/)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.

Open items

The below list of features were current when this page was generated on April 26, 2024.

Feature requests

  • Bazel: support use_extension for maven #27601
  • Implement Bazel module lockfile support #25557