This object holds information about the environment in which the build is running. See the Rules page for more on the general concept of configurations.Documentation Index
Fetch the complete documentation index at: https://bazel-pr-29415.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Members
coverage_enabled
ctx.coverage_instrumented function.
default_shell_env
host_path_separator
is_tool_configuration
short_id
config and query subcommands.
Use this to distinguish different configurations for the same target in a way that is friendly to humans and tool usage, for example in an aspect used by an IDE. Keep in mind the following caveats:
-
The value may differ across Bazel versions, including patch releases.* The value encodes the value of every flag, including those that aren’t otherwise relevant for the current target and may thus invalidate caches more frequently.
test_env
A dictionary containing user-specified test environment variables and their values, as set by the —test_env options. DO NOT USE! This is not the complete environment!