Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
bazel: take into account system wide bazelrc configuration if it exists #74976
Motivation for this change
This was extracted from #73309 to respect separation of concern.
Edit: after a few discussion with @flokli, this PR also refactors a bit of the bazelrc configuration handling:
We currently abuse bazels
We patch bazel to read from
We also use
I think we use
I think the cleanest way forward would probably be to simply patch the default locations hardcoded into the source code. Maybe there's even a way to configure those during runtime, I haven't really checked.
This way, custom configurations are all at the same place. Also, user may override these settings using the command line.
Some system may setup global informations (such as bazel cache location) in /etc/bazel.bazelrc