diff --git a/client.go b/client.go index bf2dc2b85..98c2bdd04 100644 --- a/client.go +++ b/client.go @@ -58,7 +58,6 @@ import ( "github.com/containerd/containerd/snapshots" snproxy "github.com/containerd/containerd/snapshots/proxy" "github.com/containerd/typeurl" - "github.com/gogo/protobuf/types" ptypes "github.com/gogo/protobuf/types" ocispec "github.com/opencontainers/image-spec/specs-go/v1" specs "github.com/opencontainers/runtime-spec/specs-go" @@ -723,7 +722,7 @@ func (c *Client) Server(ctx context.Context) (ServerInfo, error) { } c.connMu.Unlock() - response, err := c.IntrospectionService().Server(ctx, &types.Empty{}) + response, err := c.IntrospectionService().Server(ctx, &ptypes.Empty{}) if err != nil { return ServerInfo{}, err } diff --git a/runtime/v2/runc/v1/service.go b/runtime/v2/runc/v1/service.go index 558a08dbe..e5726d435 100644 --- a/runtime/v2/runc/v1/service.go +++ b/runtime/v2/runc/v1/service.go @@ -45,7 +45,6 @@ import ( runcC "github.com/containerd/go-runc" "github.com/containerd/typeurl" "github.com/gogo/protobuf/proto" - "github.com/gogo/protobuf/types" ptypes "github.com/gogo/protobuf/types" "github.com/pkg/errors" "github.com/sirupsen/logrus" @@ -166,7 +165,7 @@ func (s *service) StartShim(ctx context.Context, id, containerdBinary, container } if data, err := ioutil.ReadAll(os.Stdin); err == nil { if len(data) > 0 { - var any types.Any + var any ptypes.Any if err := proto.Unmarshal(data, &any); err != nil { return "", err } diff --git a/runtime/v2/runc/v2/service.go b/runtime/v2/runc/v2/service.go index 03a0db5cc..a762838d6 100644 --- a/runtime/v2/runc/v2/service.go +++ b/runtime/v2/runc/v2/service.go @@ -48,7 +48,6 @@ import ( runcC "github.com/containerd/go-runc" "github.com/containerd/typeurl" "github.com/gogo/protobuf/proto" - "github.com/gogo/protobuf/types" ptypes "github.com/gogo/protobuf/types" "github.com/pkg/errors" "github.com/sirupsen/logrus" @@ -211,7 +210,7 @@ func (s *service) StartShim(ctx context.Context, id, containerdBinary, container } if data, err := ioutil.ReadAll(os.Stdin); err == nil { if len(data) > 0 { - var any types.Any + var any ptypes.Any if err := proto.Unmarshal(data, &any); err != nil { return "", err }