From 7ead60fa7d497a881f8b133392a763105f5e348d Mon Sep 17 00:00:00 2001 From: Kotaro Inoue Date: Wed, 8 Sep 2021 02:42:55 +0900 Subject: [PATCH] Fix bazelisk install command In aarch64 machines, the bazelisk installation command fails due to binary format mismatch. We need to take care of the architecture running on. Signed-off-by: Kotaro Inoue --- bazel/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel/README.md b/bazel/README.md index cf575fa58c197..3828e675a0b37 100644 --- a/bazel/README.md +++ b/bazel/README.md @@ -7,7 +7,7 @@ It is recommended to use [Bazelisk](https://github.com/bazelbuild/bazelisk) inst On Linux, run the following commands: ```console -sudo wget -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 +sudo wget -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-$([ $(uname -m) = "aarch64" ] && echo "arm64" || echo "amd64") sudo chmod +x /usr/local/bin/bazel ```