From ebcf0f86165d2e073db06e7437ce0587d3a243b0 Mon Sep 17 00:00:00 2001 From: Justin SB Date: Thu, 18 Oct 2018 08:48:17 -0700 Subject: [PATCH] Add suggested alias for bazelrc import location See https://github.com/bazelbuild/bazel/issues/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. --- .bazelrc | 1 + tools/bazel.rc | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 .bazelrc diff --git a/.bazelrc b/.bazelrc new file mode 100644 index 0000000000000..416f12293008c --- /dev/null +++ b/.bazelrc @@ -0,0 +1 @@ +import %workspace%/tools/bazel.rc diff --git a/tools/bazel.rc b/tools/bazel.rc index efd2cf1f543e9..db50570a2544d 100644 --- a/tools/bazel.rc +++ b/tools/bazel.rc @@ -1 +1,4 @@ +# TODO: This is the "legacy" location for bazel.rc +# See https://github.com/bazelbuild/bazel/issues/6319 +# Once we expect everyone is running bazel >= 0.18 build --workspace_status_command=./tools/get_workspace_status.sh \ No newline at end of file