The bazel build was failing due to a variety of deprecation issues.
This imports git_repository and http_archive from @bazel_tools//tools/build_defs/repo:http.bzl. This also required an upgrade to @io_bazel_rules_go, which then breaks @org_pubref_rules_protobuf//go:rules.bzl.
To fix that, this switches to using go_proto_library from @io_bazel_rules_go//proto:def.bzl, which required some changes to the build params.