2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-12-02 10:15:22 +00:00
bazel-lib/lib/tests/bazelrc_presets/all/write_aspect_bazelrc_presets.bzl

12 lines
678 B
Python

"Simple wrapper around write_aspect_bazelrc_presets for testing"
load("@aspect_bazel_lib//lib:bazelrc_presets.bzl", _write_aspect_bazelrc_presets = "write_aspect_bazelrc_presets")
load("@aspect_bazel_lib_host//:defs.bzl", "host")
def write_aspect_bazelrc_presets(**kwargs):
if host.bazel_version[0] != "5":
# Don't stamp this target out if we're testing against Bazel 5. The bazel6.bazelrc file is
# deleted on CI when testing Bazel 5 which breaks analysis for this target. See
# https://github.com/aspect-build/bazel-lib/blob/fff5f10ad8e6921a45816e256f588d8020b3f2ee/.github/workflows/ci.yaml#L145.
_write_aspect_bazelrc_presets(**kwargs)