Skip to content

Migrate off from github.com/gogo/protobuf #6564

@kzys

Description

@kzys

What is the problem you're trying to solve

We'd like to migrate off from github.com/gogo/protobuf. The package is looking for owners since 2020 and no longer compatible with https://go.dev/blog/protobuf-apiv2.

This is the master ticket to associate all PRs related to the migration.

Describe the solution you'd like

Use google.golang.org/protobuf instead.

We have removed gogo/protobuf and upgraded protobuf on the following packages.

https://github.com/containerd/protobuild

https://github.com/containerd/ttrpc

gogo/protobuf's code generation extension

There are multiple gogo/protobuf extensions which don't work with protoc-gen-go. That being said, those types are mostly invisible from our Go client. So we might be able to just follow Google's new convention (e.g. using protobuf's Time instead time.Time) instead of making them fully Go-idiomatic.

Addressed

Fixed by #6699

  • gogoproto.customtype (10): All of them are used to use github.com/opencontainers/go-digest.Digest instead of string.

Fixed by #6708

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions