From eb00a37eb84fa0002006fd54ef02868f1d55a49d Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Wed, 13 Mar 2019 16:57:26 +0100 Subject: [PATCH] build: user bazelrc should be able to overwrite existing flags (#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 #29279 --- .bazelrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.bazelrc b/.bazelrc index 5883d9e898..ea96aedd2c 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,5 +1,3 @@ -# Load any settings specific to the current user -try-import .bazelrc.user ################################ # Settings for Angular team members only ################################ @@ -135,3 +133,7 @@ build:remote --remote_instance_name=projects/internal-200822/instances/default_i # Do not accept remote cache. # We need to understand the security risks of using prior build artifacts. build:remote --remote_accept_cached=false + +# Load any settings specific to the current user. Needs to be last statement in this +# config, as the user configuration should be able to overwrite flags from this file. +try-import .bazelrc.user