blob: bfbddbbcd8a6da2343fb66bc257857e5a948da4d [file]
# Import shared settings first so we can override below
import %workspace%/common.bazelrc
# Mock versioning command to test the --stamp behavior
build --workspace_status_command="echo BUILD_SCM_VERSION 1.2.3"
# ... but when releasing, use the real script instead
build:release --workspace_status_command=./scripts/current_version.sh
# Avoid python 3 which requires explicit toolchain config
# This is needed only for the pkg_tar rule
build --host_force_python=PY2
# Opt-in to upcoming breaking changes
build --incompatible_use_python_toolchains
common --incompatible_string_join_requires_strings
# TODO(gregmagolan): remove the following flags once @io_bazel_rules_go is compatible with Bazel 0.27.0
build --noincompatible_require_ctx_in_configure_features
build --noincompatible_no_support_tools_in_action_inputs
###############################
# Remote Build Execution support
# Turn on these settings with
# --config=remote
###############################
# Load default settings for Remote Build Execution.
import %workspace%/third_party/github.com/bazelbuild/bazel-toolchains/bazelrc/bazel-0.28.0.bazelrc
# Remote instance, borrow the one used by Angular devs
build:remote --remote_instance_name=projects/internal-200822/instances/default_instance
build:remote --project_id=internal-200822