11common --@aspect_rules_ts//ts:skipLibCheck=always
22common --@aspect_rules_ts//ts:default_to_tsc_transpiler
3- common --enable_bzlmod
43build --symlink_prefix=dist/
54
65# Needed as otherwise `env` of TS actions would be ignored.
76common --incompatible_merge_fixed_and_default_shell_env
87
9- # For remote testing
10- # -----
8+ # Frozen lockfile
9+ common --lockfile_mode=error
10+
11+ ################################
12+ # Remote Execution Setup #
13+ ################################
1114
1215# The following --define=EXECUTOR=remote will be able to be removed
1316# once https://github.com/bazelbuild/bazel/issues/7254 is fixed
@@ -30,11 +33,38 @@ build:remote --host_cpu=k8
3033build:remote --host_platform=@devinfra//bazel/remote-execution:platform
3134build:remote --platforms=@devinfra//bazel/remote-execution:platform
3235
33- # Remote instance and caching
36+ # Use the Angular team internal GCP instance for remote execution.
3437build:remote --remote_instance_name=projects/internal-200822/instances/primary_instance
3538build:remote --bes_instance_name=internal-200822
39+
40+ # Starting with Bazel 0.27.0 strategies do not need to be explicitly
41+ # defined. See https://github.com/bazelbuild/bazel/issues/7480
42+ build:remote --define=EXECUTOR=remote
43+
44+ # Setup the remote build execution servers.
3645build:remote --remote_cache=remotebuildexecution.googleapis.com
3746build:remote --remote_executor=remotebuildexecution.googleapis.com
3847
48+ # Set up authentication mechanism for RBE
49+ build:remote --google_default_credentials
50+
51+ # Use HTTP remote cache
52+ build:remote-cache --remote_cache=https://storage.googleapis.com/angular-team-cache
53+ build:remote-cache --remote_accept_cached=true
54+ build:remote-cache --remote_upload_local_results=false
55+ build:remote-cache --google_default_credentials
56+
57+ # Additional flags added when running a "trusted build" with additional access
58+ build:trusted-build --remote_upload_local_results=true
59+
3960# Flag for validation/demonstration of partial compilation usage.
4061build --flag_alias=partial_compilation=//src/ng_project/config:partial_compilation
62+
63+ ####################################################
64+ # User bazel configuration
65+ # NOTE: This needs to be the *last* entry in the config.
66+ ####################################################
67+
68+ # Load any settings which are specific to the current user. Needs to be *last* statement
69+ # in this config, as the user configuration should be able to overwrite flags from this file.
70+ try-import .bazelrc.user
0 commit comments