diff options
| author | Michael Vorburger ⛑️ <vorburger@google.com> | 2021-02-12 21:18:46 +0100 |
|---|---|---|
| committer | Michael Vorburger <mike@vorburger.ch> | 2021-02-13 04:17:41 +0100 |
| commit | 05c117e8d403148d921d537101baa7c8db2190c2 (patch) | |
| tree | be4d34f74bfdd5a981c111fda0f765db2f74bdf7 | |
| parent | 3d499454a542614386b5c039f6fb3eaccb19ccd8 (diff) | |
recommend using bazelisk
| -rw-r--r-- | contributors/devel/sig-testing/bazel.md | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/contributors/devel/sig-testing/bazel.md b/contributors/devel/sig-testing/bazel.md index 76e4dadd..8f0f827b 100644 --- a/contributors/devel/sig-testing/bazel.md +++ b/contributors/devel/sig-testing/bazel.md @@ -12,12 +12,14 @@ Go rules are managed by the [`gazelle`][gazelle] tool, with some additional rules managed by the [`kazel`][kazel] tool. These tools are called via the `hack/update-bazel.sh` script. -Instructions for installing Bazel can be found [here][bazel-install]. -Note that older Bazel versions did not work with Python 3, so we recommend -using version 0.27.0 or newer. If you still have Python-related problems, -please take a look at [this FAQ][bazel-python-faq]. +Kubernetes requires [a specific version of Bazel](https://github.com/kubernetes/kubernetes/blob/master/build/root/.bazelversion). +[Consider using Bazelisk](https://docs.bazel.build/versions/master/install-bazelisk.html) +which automatically installs the version of Bazel that Kubernetes requires: -Several convenience `make` rules have been created for common operations: + go get github.com/bazelbuild/bazelisk + bazelisk test //pkg/kubectl/... + +If you `alias bazel=bazelisk`, then you can use several convenience `make` rules which have been created for common operations: * `make bazel-build`: builds all binaries in tree (`bazel build -- //... -//vendor/...`) |
