sudo apt install apt-transport-https curl gnupg -y
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg
sudo mv bazel-archive-keyring.gpg /usr/share/keyrings
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
sudo apt update && sudo apt install -y bazel-6.4.0
go mod init github.com/craftslab/hello
bazel run //:gazelle
# target: bazel-bin/hello_/hello
bazel run //:hello
# target: bazel-bin/hello_go_proto_/github.com/craftslab/hello/hello.pb.go
bazel build //:hello_go_proto