I want to install Bazel on linux 20.04 version. I have already installed go.
I am trying to use the command go install github.com/bazelbuild/bazelisk@latest mentioned in here.
Somehow I am unable to locate where the bazel file is installed.
After running the command sudo go install github.com/bazelbuild/bazelisk@latest, terminal printed the following:
go: downloading github.com/bazelbuild/bazelisk v1.11.0
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/hashicorp/go-version v1.3.0
My go env variables are as follows:
GOBIN="/home/somepc/Desktop/TryBasel"
GOCACHE="/home/somepc/.cache/go-build"
GOENV="/home/somepc/.config/go/env"
GOMODCACHE="/usr/local/go/bin/pkg/mod"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
I have only included the env variables, which I felt were important to solve this issue. Kindly let me know in the comments if more information is needed!