Skip to content

feat: import Bazel version specific run commands

Matthew Clarkson requested to merge bazel-versions into main

Add four new environment variables for run command substitution:

  • BAZEL_MAJOR_VERSION
  • BAZEL_MAJOR_MINOR_VERSION
  • BAZEL_MAJOR_MINOR_PATCH_VERSION
  • BAZEL_VERSION (same as BAZEL_MAJOR_MINOR_PATCH_VERSION)

These can be used to import version specific run commands.

try-import %workspace%/.bazelrc.${BAZEL_MAJOR_MINOR_PATCH_VERSION}
try-import %workspace%/.bazelrc.${BAZEL_MAJOR_MINOR_VERSION}
try-import %workspace%/.bazelrc.${BAZEL_MAJOR_VERSION}

Fixes #16 (closed)

Edited by Matthew Clarkson

Merge request reports

Loading