Skip to content

Commit 6254e11

Browse files
authored
Merge pull request #5520 from vorburger/patch-2
recommend using bazelisk
2 parents 3d49945 + 05c117e commit 6254e11

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

contributors/devel/sig-testing/bazel.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ Go rules are managed by the [`gazelle`][gazelle]
1212
tool, with some additional rules managed by the [`kazel`][kazel] tool.
1313
These tools are called via the `hack/update-bazel.sh` script.
1414

15-
Instructions for installing Bazel can be found [here][bazel-install].
16-
Note that older Bazel versions did not work with Python 3, so we recommend
17-
using version 0.27.0 or newer. If you still have Python-related problems,
18-
please take a look at [this FAQ][bazel-python-faq].
15+
Kubernetes requires [a specific version of Bazel](https://github.com/kubernetes/kubernetes/blob/master/build/root/.bazelversion).
16+
[Consider using Bazelisk](https://docs.bazel.build/versions/master/install-bazelisk.html)
17+
which automatically installs the version of Bazel that Kubernetes requires:
1918

20-
Several convenience `make` rules have been created for common operations:
19+
go get github.com/bazelbuild/bazelisk
20+
bazelisk test //pkg/kubectl/...
21+
22+
If you `alias bazel=bazelisk`, then you can use several convenience `make` rules which have been created for common operations:
2123

2224
* `make bazel-build`: builds all binaries in tree (`bazel build -- //...
2325
-//vendor/...`)

0 commit comments

Comments
 (0)