I want to install Bazel (version 5.1.1) into an Alpine container using apk.
I tried this command and got this error:
% apk add bazel=5.1.1
ERROR: unable to select packages:
bazel (no such package):
required by: world[bazel=5.1.1]
Removing the version doesn't help...
% apk add bazel
ERROR: unable to select packages:
bazel (no such package):
required by: world[bazel]
Adding "--no-cache" to the apk command also doesn't help.
Can anyone explain the cause of the error and how to make the installation happen correctly?