Skip to content

Compile error in client v0.8.0 #373

@aFuerst

Description

@aFuerst

Latest client package fails to compile .proto files

Failed to generate GRPC bindings: Custom { kind: Other, error: "protoc failed: github.com/containerd/containerd/api/types/fieldpath.proto:37:18: Explicit 'optional' labels are disallowed in the Proto3 syntax. To define 'optional' fields in Proto3, simply remove the 'optional' label, as fields are 'optional' by default.\ngithub.com/containerd/containerd/api/types/fieldpath.proto:41:18: Explicit 'optional' labels are disallowed in the Proto3 syntax. To define 'optional' fields in Proto3, simply remove the 'optional' label, as fields are 'optional' by default.\ngithub.com/containerd/containerd/api/types/event.proto: Import \"github.com/containerd/containerd/api/types/fieldpath.proto\" was not found or had errors.\ngithub.com/containerd/containerd/api/services/events/v1/events.proto: Import \"github.com/containerd/containerd/api/types/event.proto\" was not found or had errors.\ngithub.com/containerd/containerd/api/services/events/v1/events.proto:57:9: \"containerd.types.Envelope\" is not defined.\ngithub.com/containerd/containerd/api/services/events/v1/events.proto:48:57: \"containerd.types.Envelope\" is not defined.\n" }

This was fixed in #367 and included in the shim release of 0.8.0, but that change wasn't in the client release.
vendor/github.com/containerd/containerd/api/types/fieldpath.proto in the release zip still uses optional

I have protobuf version 3.12.4 installed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions