You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
%workspace%/tools/bazel.rc is replaced by %workspace%/.bazelrc. If you have the old file and want to support multiple versions of bazel - add the line import %workspace%/tools/bazel.rc at the top of your new .bazelrc file.
This file is in the same location as a file that used to be a "user-rc" (per-user configuration file for the project) - this is because it's the best place for it. If you have trouble transitioning though, because the user-rc was .gitignored, here is a suggestion for how to update your layout:
command-line provided, passed as --bazelrc or nothing if the flag is absent.
This means that the following rc's will be ignored from now on:
%workspace%/tools/bazel.rc
This is replaced by %workspace%/.bazelrc. If you have the old file and want to support multiple versions of bazel - add the line import %workspace%/tools/bazel.rc at the top of your new .bazelrc file.
Yes, this is in the same location as a file that used to be a "user-rc" - this is because it's the best place for it. If you have trouble transitioning though, because the user-rc was .gitignored, here is a suggestion for how to update your layout:
Move the old .bazelrc to user.bazelrc
Change the gitignore to ignoring that file.
The workspace rc file, the new .bazelrc, can be checked in (and import tools/bazel.rc, if you need version compatibility as described above), and contain the line try-import %workspace%/user.bazelrc. This will allow users of this git project to optionally have the user rc, without erroring out for the users who do not need it.
%binary_dir%/bazel.bazelrc
There is no replacement for the binary rc - there wasn't much of a use case for that and the system rc should be sufficient, but if you were using it, please import that file into your system rc.
@katre Well actually this one is not a release blocker for 0.19 because that one is already cut. As long as you do not cherry-pick the fix for #6321 (don't), no action is needed.
Activity
katre commentedon Oct 5, 2018
This is then also a release blocker for 0.19 (#6116).
dslomov commentedon Oct 5, 2018
This bug is actually not a release blocker for 0.18, #6321 is.
However this bug is indeed a blocker for 0.19
katre commentedon Oct 5, 2018
Once they are merged please comment on #6116 to let me know what the needed cherrypicks are. Thanks!
cvcal commentedon Oct 5, 2018
The old list of bazelrcs was, in order:
%workspace%/tools/bazel.rc(unless--nomaster_bazelrc)%binary_dir%/bazel.bazelrc(unless--nomaster_bazelrc)/etc/bazel.bazelrcor in%ProgramData%for Windows (unless--nomaster_bazelrc)--bazelrc%workspace%/.bazelrc$HOME/.bazelrcThe new list is hopefully a bit more consistent, as:
--nosystem_rc) (same location as before)%workspace%/.bazelrc(unless--noworkspace_rc)$HOME/.bazelrc(unless--nohome_rc)--bazelrcor nothing if the flag is absent.This means that the following rc's will be ignored from now on:
%workspace%/tools/bazel.rc%workspace%/.bazelrc. If you have the old file and want to support multiple versions of bazel - add the lineimport %workspace%/tools/bazel.rcat the top of your new.bazelrcfile..bazelrctouser.bazelrctry-import %workspace%/user.bazelrc. This will allow users of this git project to optionally have the user rc, without erroring out for the users who do not need it.%binary_dir%/bazel.bazelrcdslomov commentedon Oct 5, 2018
@katre Well actually this one is not a release blocker for 0.19 because that one is already cut. As long as you do not cherry-pick the fix for #6321 (don't), no action is needed.
However it is a release blocker for 0.20 (#6117)
Do the `.bazelrc` dance.
Do the `.bazelrc` dance.
Add suggested alias for bazelrc import location
Add suggested alias for bazelrc import location
6 remaining items
sgreenstein commentedon Oct 24, 2018
%USERPROFILE%/.bazelrc
Add suggested alias for bazelrc import location
Import legacy .bazelrc file for Bazel 0.19 and above
Import legacy .bazelrc file for Bazel 0.19 and above (#117)
Add .bazelrc file in project root, see
Move tools/bazel.rc to .bazelrc
Move tools/bazel.rc to .bazelrc
Move tools/bazel.rc to .bazelrc
Move tools/bazel.rc to .bazelrc
Move tools/bazel.rc to .bazelrc
Move tools/bazel.rc to .bazelrc
Move tools/bazel.rc to .bazelrc
Remove 8 year old RC file warnings
Remove 8 year old RC file warnings
Remove 8 year old RC file warnings (#29234)