Skip to content

Commit

Permalink
Upgrade to containerd v2.0.0-rc.3
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Aug 24, 2024
1 parent 292533b commit 77cd8f3
Show file tree
Hide file tree
Showing 8 changed files with 84 additions and 88 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
go-version: "1.23"
- run: go test -v ./...
build:
strategy:
Expand Down
2 changes: 1 addition & 1 deletion cmd/containerd-shim-rund-v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"context"
"github.com/containerd/containerd/v2/core/runtime/v2/shim"
"github.com/containerd/containerd/v2/pkg/shim"
"github.com/darwin-containers/rund/containerd"
)

Expand Down
2 changes: 1 addition & 1 deletion containerd/managed_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package containerd

import (
"context"
"github.com/containerd/containerd/v2/api/types/task"
"github.com/containerd/containerd/api/types/task"
"github.com/creack/pty"
"github.com/hashicorp/go-multierror"
"github.com/opencontainers/runtime-spec/specs-go"
Expand Down
9 changes: 4 additions & 5 deletions containerd/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ package containerd
import (
"context"
"fmt"
"github.com/containerd/containerd/v2/api/types"
apitypes "github.com/containerd/containerd/v2/api/types"
"github.com/containerd/containerd/api/types"
"github.com/containerd/containerd/v2/core/mount"
"github.com/containerd/containerd/v2/core/runtime/v2/shim"
"github.com/containerd/containerd/v2/pkg/namespaces"
"github.com/containerd/containerd/v2/pkg/oci"
"github.com/containerd/containerd/v2/pkg/shim"
"github.com/containerd/log"
"io"
"os"
Expand All @@ -27,9 +26,9 @@ type manager struct {
}

func (m *manager) Info(_ context.Context, _ io.Reader) (*types.RuntimeInfo, error) {
info := &apitypes.RuntimeInfo{
info := &types.RuntimeInfo{
Name: m.Name(),
Version: &apitypes.RuntimeVersion{
Version: &types.RuntimeVersion{
Version: Version,
},
}
Expand Down
2 changes: 1 addition & 1 deletion containerd/plugin.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package containerd

import (
"github.com/containerd/containerd/v2/core/runtime/v2/shim"
"github.com/containerd/containerd/v2/pkg/shim"
"github.com/containerd/containerd/v2/pkg/shutdown"
"github.com/containerd/containerd/v2/plugins"
"github.com/containerd/plugin"
Expand Down
12 changes: 6 additions & 6 deletions containerd/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ package containerd
import (
"context"
"fmt"
"github.com/containerd/containerd/v2/api/events"
taskAPI "github.com/containerd/containerd/v2/api/runtime/task/v3"
"github.com/containerd/containerd/v2/api/types/task"
"github.com/containerd/containerd/api/events"
taskAPI "github.com/containerd/containerd/api/runtime/task/v3"
"github.com/containerd/containerd/api/types/task"
"github.com/containerd/containerd/v2/core/mount"
"github.com/containerd/containerd/v2/core/runtime"
"github.com/containerd/containerd/v2/core/runtime/v2/shim"
"github.com/containerd/containerd/v2/pkg/namespaces"
"github.com/containerd/containerd/v2/pkg/oci"
"github.com/containerd/containerd/v2/pkg/protobuf"
ptypes "github.com/containerd/containerd/v2/pkg/protobuf/types"
"github.com/containerd/containerd/v2/pkg/shim"
"github.com/containerd/containerd/v2/pkg/shutdown"
"github.com/containerd/containerd/v2/protobuf"
ptypes "github.com/containerd/containerd/v2/protobuf/types"
"github.com/containerd/errdefs"
"github.com/containerd/log"
"github.com/containerd/ttrpc"
Expand Down
49 changes: 25 additions & 24 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
module github.com/darwin-containers/rund

go 1.22
go 1.23.0

require (
github.com/containerd/containerd/v2 v2.0.0-beta.2
github.com/containerd/containerd/api v1.8.0-rc.3
github.com/containerd/containerd/v2 v2.0.0-rc.3
github.com/containerd/errdefs v0.1.0
github.com/containerd/fifo v1.1.0
github.com/containerd/log v0.1.0
Expand All @@ -18,46 +19,46 @@ require (
)

require (
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/Microsoft/hcsshim v0.12.0-rc.2 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/Microsoft/hcsshim v0.12.4 // indirect
github.com/containerd/cgroups/v3 v3.0.3 // indirect
github.com/containerd/console v1.0.3 // indirect
github.com/containerd/containerd v1.7.13 // indirect
github.com/containerd/console v1.0.4 // indirect
github.com/containerd/continuity v0.4.3 // indirect
github.com/containerd/go-runc v1.1.0 // indirect
github.com/containerd/platforms v0.1.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/containerd/platforms v0.2.1 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/klauspost/compress v1.17.4 // indirect
github.com/klauspost/compress v1.17.8 // indirect
github.com/mdlayher/socket v0.4.1 // indirect
github.com/mdlayher/vsock v1.2.1 // indirect
github.com/moby/sys/mountinfo v0.7.1 // indirect
github.com/moby/sys/sequential v0.5.0 // indirect
github.com/moby/sys/user v0.1.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0-rc5 // indirect
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/opencontainers/runtime-tools v0.9.1-0.20221107090550-2e043c6bd626 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.23.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/tools v0.16.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231212172506-995d672761c0 // indirect
google.golang.org/grpc v1.60.1 // indirect
google.golang.org/protobuf v1.33.0 // indirect
golang.org/x/mod v0.18.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/text v0.15.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240415180920-8c6c420018be // indirect
google.golang.org/grpc v1.63.2 // indirect
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
tags.cncf.io/container-device-interface v0.6.2 // indirect
tags.cncf.io/container-device-interface/specs-go v0.6.0 // indirect
tags.cncf.io/container-device-interface v0.7.2 // indirect
tags.cncf.io/container-device-interface/specs-go v0.7.0 // indirect
)

replace github.com/containerd/containerd/v2 => github.com/darwin-containers/containerd/v2 v2.0.0-20240218142517-4e59b5b68c3e
replace github.com/containerd/containerd/v2 => github.com/darwin-containers/containerd/v2 v2.0.0-20240616190812-6cb7013b6b89

replace github.com/containerd/containerd/api => github.com/darwin-containers/containerd/api v0.0.0-20240616190812-6cb7013b6b89
Loading

0 comments on commit 77cd8f3

Please sign in to comment.