Merge pull request #52679 from ixdy/bazel-comprehension-variables

Automatic merge from submit-queue (batch tested with PRs 52679, 52285). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>..

bazel: set --incompatible_comprehension_variables_do_not_leak=false

**What this PR does / why we need it**: future-proofing the repo against the upcoming release of bazel 0.6.0. x-ref #52677

**Release note**:

```release-note
NONE
```

/assign @spxtr @BenTheElder @mikedanese
This commit is contained in:
Kubernetes Submit Queue 2017-09-19 18:27:44 -07:00 committed by GitHub
commit 4fea2136b2

View File

@ -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