Switch to google-protobuf v2 API
https://gitlab.com/gitlab-org/gitlab-workhorse/-/jobs/684103190 shows updating the honnef.co/go/tools
package flags a number of deprecation warnings:
gitaly_test.go:20:2: package github.com/golang/protobuf/jsonpb is deprecated: Use the "google.golang.org/protobuf/encoding/protojson" package instead. (SA1019)
gitaly_test.go:21:2: package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead. (SA1019)
internal/git/archive.go:18:2: package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead. (SA1019)
internal/gitaly/gitaly.go:8:2: package github.com/golang/protobuf/jsonpb is deprecated: Use the "google.golang.org/protobuf/encoding/protojson" package instead. (SA1019)
internal/gitaly/gitaly.go:9:2: package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead. (SA1019)
internal/testhelper/gitaly.go:11:2: package github.com/golang/protobuf/jsonpb is deprecated: Use the "google.golang.org/protobuf/encoding/protojson" package instead. (SA1019)
internal/testhelper/gitaly.go:12:2: package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead. (SA1019)
https://blog.golang.org/protobuf-apiv2 says:
The github.com/golang/protobuf module is APIv1.
The google.golang.org/protobuf module is APIv2. We have taken advantage of the need to change the import path to switch to one that is not tied to a specific hosting provider. (We considered google.golang.org/protobuf/v2, to make it clear that this is the second major version of the API, but settled on the shorter path as being the better choice in the long term.)