# Bazel settings that apply to this repository. # Settings that apply only to CI are in .aspect/bazelrc/ci.bazelrc # Import Aspect bazelrc presets import %workspace%/.aspect/bazelrc/convenience.bazelrc import %workspace%/.aspect/bazelrc/correctness.bazelrc import %workspace%/.aspect/bazelrc/performance.bazelrc import %workspace%/.aspect/bazelrc/debug.bazelrc import %workspace%/.aspect/bazelrc/javascript.bazelrc # Use a try-import for Bazel 6 settings since this repository is also tested against Bazel 5 on CI try-import %workspace%/.aspect/bazelrc/bazel6.bazelrc ### PROJECT SPECIFIC OPTIONS ### # For testing our --stamp behavior. # Normally users would use a --workspace_status_command with a script that calls `git describe`. build --embed_label=v1.2.3 # Mock versioning command to test the --stamp behavior build --workspace_status_command="echo BUILD_SCM_VERSION 1.2.3" # For testing always use toolchains from source build --@aspect_bazel_lib//tools:use_source_toolchains build --extra_toolchains=//tools:all # For releasing, use --workspace_status_command and stamp common:release --workspace_status_command "${PWD}/workspace_status.sh" common:release -c opt common:release --stamp # Load any settings & overrides specific to the current user from `.aspect/bazelrc/user.bazelrc`. # This file should appear in `.gitignore` so that settings are not shared with team members. This # should be last statement in this config so the user configuration is able to overwrite flags from # this file. See https://bazel.build/configure/best-practices#bazelrc-file. try-import %workspace%/.aspect/bazelrc/user.bazelrc