Skip to content

Automated Dependency Updates for 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.

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 feature requests

  • Invoke bazel run //:gazelle to upgrade BUILD files after updating the WORKSPACE of a Bazel proejct #3347
  • Support updating non semver tags for Github repos in Bazel workspaces #3595
  • Bazel: support updating of maven dependencies #5151
  • Support bazel go_repository urls field #6207
  • [Bazel] Support for repository_ctx download and download_and_extract #6462
  • bazel: support http_archives with non-GitHub URLs #6847
  • Bazel: Update dependencies hosted on GitLab #7945
  • Bazel: Updating http_file's that point into GitHub repos #8784

The above list of features were current when this page was generated on August 15, 2022.