Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

README.md

Outline

As you may have noticed, we've been transitioning to the bazel build system.

Although most elements are still under development, here are a few notes that could "help us help you."

Single requirement: bazelisk

Tip

We recommend using Bazelisk through dda, our developer tool.

  1. Ensure that the latest version is installed.
  2. Use the dda bzl Bazel wrapper in place of all bazel commands. This will forward all arguments to Bazel and transparently download Bazelisk if there is no bazel nor bazelisk in your PATH.

If your OS or dev container does not already provide it, you will need to install the bazelisk tool, which will automatically switch to the version of bazel specified in the branch you wish to contribute to.

We recommend using brew because the package also installs a symbolic link named bazel: (which is very useful on a daily basis, such as matching examples in the literature)

brew install bazelisk

Otherwise, please choose the bazelisk installation method that suits you best; you can find some of them here:

In that case, please consider adding a link to bazelisk named bazel in your PATH.

Autocorrection of bazel files: buildifier

To help us maintain good bazel file hygiene, please preferably run the version of buildifier specified in the branch you wish to work in:

dda bzl run //bazel/buildifier
# or
bazel run //bazel/buildifier

Lock file maintenance

MODULE.bazel.lock must exhaustively reflect actually used dependencies. After updating any bazel dependency, such as with bazel_dep in a MODULE.bazel file, please run:

bazel mod deps

Remote cache (internal to Datadog)

If you are on the Datadog internal network and want to take advantage of the remote cache, simply add the following line to a user.bazelrc file located at the root of the workspace, or to a .bazelrc file located in your home directory:

common --config=cache
Morty Proxy This is a proxified and sanitized view of the page, visit original site.