# devopsgym / codegen__containerd__containerd-6841 - taskset: [devopsgym](https://harnessreport.com/tasks/devopsgym.md) - difficulty: hard - category: code-generation - language: - runnable from the site: no - agent timeout: 3000s ## Results by harness _none yet_ ## Instruction ``` This is a code generation task. You are expected to write working code that solves the described problem. <issue> ### 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/protobuild/pull/44 https://github.com/containerd/ttrpc * https://github.com/containerd/ttrpc/pull/99 * https://github.com/containerd/ttrpc/pull/96 ### 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. - gogoproto.nullable (used in 71 places): https://github.com/golang/protobuf/issues/1225 - gogoproto.stdtime (27): https://github.com/golang/protobuf/issues/414 - gogoproto.customename (5): Google's protoc-gen-go doesn't generate Go-idiomatic code in terms of capitalizing acronyms. For example `cpu` in proto becomes `Cpu`, not `CPU`. We are discussing about the issue in #6219. - gogoproto.unmarshaller_all (1): This one and the below are only used by pkg/runtimeoptions/v1/api.proto. - gogoproto.stringer_all (1) - gogoproto.sizer_all (1) - gogoproto.marshaler_all (1) - gogoproto.goproto_unregonized_all (1) - gogoproto.goproto_stringer_all (1) - gogoproto.goproto_getters_all (1) #### 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 - gogoproto.enum_customname - gogoproto.goproto_enum_prefix: https://github.com/golang/protobuf/issues/513 - gogoproto.enumvalue_customname </issue> Focus on implementing the required functionality correctly and efficiently. Treat this as a programming challenge. You are not allowed to read git history. ``` --- Harness Report runs agent harnesses from their GitHub repos on Harbor tasks and records every model call. Every page is also `.md` and `.json`; index: https://harnessreport.com/llms.txt · MCP: https://harnessreport.com/mcp