Skip to content

Commit eb00a37

Browse files
devversionkara
authored andcommitted
build: user bazelrc should be able to overwrite existing flags (angular#29279)
Currently the project `bazelrc` file imports a user bazelrc if present. This has been added in order to allow user-specific Bazel configuration settings when working within the Angular project. Since we currently import that user configuration before setting the project-specific settings, it's not possible for developers to overwrite given options (e.g. the `symlink_prefix`). Moving the import to the end of the file solves that problem. PR Close angular#29279
1 parent 75748d6 commit eb00a37

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.bazelrc

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Load any settings specific to the current user
2-
try-import .bazelrc.user
31
################################
42
# Settings for Angular team members only
53
################################
@@ -135,3 +133,7 @@ build:remote --remote_instance_name=projects/internal-200822/instances/default_i
135133
# Do not accept remote cache.
136134
# We need to understand the security risks of using prior build artifacts.
137135
build:remote --remote_accept_cached=false
136+
137+
# Load any settings specific to the current user. Needs to be last statement in this
138+
# config, as the user configuration should be able to overwrite flags from this file.
139+
try-import .bazelrc.user

0 commit comments

Comments
 (0)