bazel__book/p22_24/.bazelrc

22 lines
812 B
Text

# --- MODULE RESOLUTION ---
# Point to your internal registry first, then fallback to BCR
# common --registry=https://bazel-registry.internal.corp
common --registry=https://bcr.bazel.build # Default: made explicit for clarity
# --- STRICTNESS & HERMETICITY ---
# Enforce strict environment variables (avoids "works on my machine" bugs)
build --incompatible_strict_action_env
common --enable_bzlmod # Force Bzlmod (redundant in Bazel 9 but good for documentation)
# --- CACHING ---
# Enable local disk cache (separate from the install base)
build --disk_cache=%user_home%/.cache/bazel-disk-cache
# --- UI & LOGGING ---
common --color=yes
common --show_progress_rate_limit=5
# --- LOCAL OVERRIDES ---
# This allows you to have a personal file that isn't tracked by Git
try-import %workspace%/user.bazelrc