From 59906e2948fd116981f67b137b8a49891df69e72 Mon Sep 17 00:00:00 2001 From: Jeff Grafton Date: Mon, 18 Sep 2017 15:31:09 -0700 Subject: [PATCH] bazel: set --incompatible_comprehension_variables_do_not_leak=false --- build/root/.bazelrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/root/.bazelrc b/build/root/.bazelrc index e607627357e..a7f69ce6f3a 100644 --- a/build/root/.bazelrc +++ b/build/root/.bazelrc @@ -11,3 +11,9 @@ build --sandbox_tmpfs_path=/tmp # Ensure that Bazel never runs as root, which can cause unit tests to fail. # This flag requires Bazel 0.5.0+ build --sandbox_fake_username + +# rules_go@82483596ec203eb9c1849937636f4cbed83733eb has a typo that +# inadvertently relies on comprehension variables leaking. +# TODO(ixdy): Remove this default once rules_go is bumped. +# Ref kubernetes/kubernetes#52677 +build --incompatible_comprehension_variables_do_not_leak=false