-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Remove tools/bazel.rc parsing #6319
Comments
This is then also a release blocker for 0.19 (#6116). |
This bug is actually not a release blocker for 0.18, #6321 is. |
Once they are merged please comment on #6116 to let me know what the needed cherrypicks are. Thanks! |
The old list of bazelrcs was, in order:
The new list is hopefully a bit more consistent, as:
This means that the following rc's will be ignored from now on:
|
See bazelbuild/bazel#6319 The default bazelrc location is changing. So that we don't break during the transition, we set up an alias so that bazel versions that load from the new location are redirected to the old location. Also add a TODO to move to the new location once bazel 0.18 is prevalent.
See bazelbuild/bazel#6319 The default bazelrc location is changing. So that we don't break during the transition, we set up an alias so that bazel versions that load from the new location are redirected to the old location. Also add a TODO to move to the new location once bazel 0.18 is prevalent.
See bazelbuild/bazel#6319 The default bazelrc location is changing. So that we don't break during the transition, we set up an alias so that bazel versions that load from the new location are redirected to the old location. Also add a TODO to move to the new location once bazel 0.18 is prevalent.
We can just move the old file to the new location once we're building exclusively with 0.19, but that's not yet released and we don't support it yet. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217917383
We can just move the old file to the new location once we're building exclusively with 0.19, but that's not yet released and we don't support it yet. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217917383
We can just move the old file to the new location once we're building exclusively with 0.19, but that's not yet released and we don't support it yet. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217917383
Where does the user rc reside on Windows? |
The search path changed in bazelbuild/bazel#6319, move to the new location.
The search path changed in bazelbuild/bazel#6319, move to the new location.
The search path changed in bazelbuild/bazel#6319, move to the new location.
The search path changed in bazelbuild/bazel#6319, move to the new location.
The search path changed in bazelbuild/bazel#6319, move to the new location.
The search path changed in bazelbuild/bazel#6319, move to the new location.
The search path changed in bazelbuild/bazel#6319, move to the new location.
Current documentation of how
.bazerc
files are parsed is here: https://docs.bazel.build/versions/master/user-manual.html#where-are-the-bazelrc-files#6321 introduced a support for parsing
tools/bazel.rc
file to ease the transition.How to migrate
(see the complete summary of changes in #6319 (comment))
%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 lineimport %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:
try-import %workspace%/user.bazelrc
The text was updated successfully, but these errors were encountered: