| # import common bazelrc settings used in this repository and in nested workspaces | |
| import %workspace%/.bazelrc.common | |
| # import bazelrc settings that are needed for testing in this repository | |
| import %workspace%/.bazelrc.testing | |
| # Use a try-import for Bazel 6 settings since this repository is also tested against Bazel 5 on CI | |
| try-import %workspace%/.bazelrc.bazel6 | |
| # Load any settings specific to the current user. | |
| # .bazelrc.user should appear in .gitignore so that settings are not shared with team members | |
| # This needs to be last statement in this | |
| # config, as the user configuration should be able to overwrite flags from this file. | |
| # See https://docs.bazel.build/versions/master/best-practices.html#bazelrc | |
| # (Note that we use .bazelrc.user so the file appears next to .bazelrc in directory listing, | |
| # rather than user.bazelrc as suggested in the Bazel docs) | |
| try-import %workspace%/.bazelrc.user |