Skip to main content
Version: 2.8.x

bazelrc_presets

'Presets' for bazelrc

See https://docs.aspect.build/guides/bazelrc

Macros and Functions

write_aspect_bazelrc_presets

Keeps your vendored copy of Aspect recommended .bazelrc presets up-to-date.

This macro uses a write_source_files rule under the hood to keep your presets up-to-date.

By default all presets are vendored but this list can be customized using the presets attribute.

Example usage (generated):

load("@aspect_bazel_lib//lib:bazelrc_presets.bzl", "write_aspect_bazelrc_presets")

write_aspect_bazelrc_presets(
# a unique name for this target
name = "",
)

name

Required.

a unique name for this target

presets

Optional. Default: ["bazel6", "bazel7", "ci", "convenience", "correctness", "debug", "javascript", "performance"]

a list of preset names to keep up-to-date

kwargs

Optional.

Additional arguments to pass to write_source_files