-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bazel does not read /etc/bazelrc #70911
Comments
I'll be in favour of keeping support for all paths specified in the documentation - having a system-wide We currently set the following options in bazelrc:
We should either patch these as defaults into nixos, or introduce reading from a distro-provided location (should be coordinated with bazel upstream). I think adding a wrapper is a bit too much for all these options. |
@flokli I do agree with your point of view. I'll try to propose a PR which restore the old behavior. In the meantime, I'm open to other comments on this issue. Regarding the options you quote, they are used in a local
Both were ad hoc solution for different problems, respectively issue #63096 and commit 67904dc. |
…ration Some system may setup global informations (such as bazel cache location) in /etc/bazel.bazelrc
Describe the bug
By default and according to bazel documentation (https://docs.bazel.build/versions/master/guide.html#where-are-the-bazelrc-files), bazel is looking for a system-wide configuration is
/etc/bazel.bazelrc
.In ba327a5 I decided to override this path and make it point in
$out/etc/bazelrc
. It was the easiest solution to pass arguments to bazel in order to fix a few runtime issues.However it breaks the assumption that user can configure bazel using
/etc/bazel.bazelrc
.To Reproduce
nix run nixpkgs.bazel
./etc/bazel.bazelrc
fileExpected behavior
I'm opening this bug report to discuss what should be the expected behavior here? Should we respect the
/etc/bazel.bazelrc
? If yes, I'll open a pull request to restore the previous behavior.The text was updated successfully, but these errors were encountered: