From 76e13f37c15f5e0de40915b82e5d2f6c0c6a06c0 Mon Sep 17 00:00:00 2001 From: William Chargin Date: Fri, 9 Aug 2019 15:20:00 -0700 Subject: [PATCH 1/2] build: add `.bazelrc` to disable Python toolchains Summary: This expands our forward-compatibility window to at least 0.29.0rc4 by opting out of the `--incompatible_use_python_toolchains` flag whose default was flipped in 0.27.0 (see #2355). Test Plan: On Bazel 0.29.0rc4, verify that `//tensorboard` builds and runs correctly and that all tests pass, without the need to manually specify any flags to Bazel. wchargin-branch: bazelrc-toolchains --- .bazelrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 .bazelrc diff --git a/.bazelrc b/.bazelrc new file mode 100644 index 0000000000..5cc98e94c7 --- /dev/null +++ b/.bazelrc @@ -0,0 +1 @@ +common --incompatible_use_python_toolchains=false From c37f131f54673e07fb56d3c4b6c909c4b948c3d0 Mon Sep 17 00:00:00 2001 From: William Chargin Date: Fri, 9 Aug 2019 16:27:12 -0700 Subject: [PATCH 2/2] [update patch] wchargin-source: 1c1d54469ce7d63c1b8415eb3d1511958ed63aa5 wchargin-branch: bazelrc-toolchains --- .bazelrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index 5cc98e94c7..a65fb1e584 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1 +1,5 @@ -common --incompatible_use_python_toolchains=false +# For compatibility with Bazel 0.27 through 0.29. See: +# +aquery --incompatible_use_python_toolchains=false +build --incompatible_use_python_toolchains=false +test --incompatible_use_python_toolchains=false