Skip to content

Commit 175973b

Browse files
committed
switch to github.com/containerd/platforms module
Switch to use github.com/containerd/platforms module, because containerd's platforms package has moved to a separate module. This allows updating the platforms parsing independent of the containerd module itself. The package in containerd is deprecated, but kept as an alias to provide compatibility between codebases. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 672f39f commit 175973b

File tree

49 files changed

+46
-293
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+46
-293
lines changed

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ linters-settings:
5252
desc: The containerd errdefs package was migrated to a separate module. Use github.com/containerd/errdefs instead.
5353
- pkg: "github.com/containerd/containerd/log"
5454
desc: The containerd log package was migrated to a separate module. Use github.com/containerd/log instead.
55+
- pkg: "github.com/containerd/containerd/platforms"
56+
desc: The containerd platforms package was migrated to a separate module. Use github.com/containerd/platforms instead.
5557
- pkg: "io/ioutil"
5658
desc: The io/ioutil package has been deprecated.
5759
forbidigo:

client/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ import (
3232
"github.com/containerd/containerd/content/proxy"
3333
"github.com/containerd/containerd/images"
3434
"github.com/containerd/containerd/namespaces"
35-
"github.com/containerd/containerd/platforms"
3635
"github.com/containerd/containerd/remotes/docker"
3736
"github.com/containerd/containerd/snapshots"
3837
"github.com/containerd/continuity/fs/fstest"
3938
cerrdefs "github.com/containerd/errdefs"
39+
"github.com/containerd/platforms"
4040
"github.com/distribution/reference"
4141
intoto "github.com/in-toto/in-toto-golang/in_toto"
4242
controlapi "github.com/moby/buildkit/api/services/control"

client/llb/definition_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"testing"
88

9-
"github.com/containerd/containerd/platforms"
9+
"github.com/containerd/platforms"
1010
"github.com/moby/buildkit/solver/pb"
1111
digest "github.com/opencontainers/go-digest"
1212
"github.com/stretchr/testify/require"

client/llb/imagemetaresolver/resolver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"net/http"
66
"sync"
77

8-
"github.com/containerd/containerd/platforms"
98
"github.com/containerd/containerd/remotes"
109
"github.com/containerd/containerd/remotes/docker"
10+
"github.com/containerd/platforms"
1111
"github.com/moby/buildkit/client/llb"
1212
"github.com/moby/buildkit/client/llb/sourceresolver"
1313
"github.com/moby/buildkit/util/contentutil"

client/llb/llbtest/platform_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strings"
66
"testing"
77

8-
"github.com/containerd/containerd/platforms"
8+
"github.com/containerd/platforms"
99
"github.com/moby/buildkit/client/llb"
1010
"github.com/moby/buildkit/solver"
1111
"github.com/moby/buildkit/solver/llbsolver"

client/llb/marshal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"io"
55
"maps"
66

7-
"github.com/containerd/containerd/platforms"
7+
"github.com/containerd/platforms"
88
"github.com/moby/buildkit/solver/pb"
99
digest "github.com/opencontainers/go-digest"
1010
)

client/llb/meta.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"slices"
99
"sync"
1010

11-
"github.com/containerd/containerd/platforms"
11+
"github.com/containerd/platforms"
1212
"github.com/google/shlex"
1313
"github.com/moby/buildkit/solver/pb"
1414
ocispecs "github.com/opencontainers/image-spec/specs-go/v1"

client/llb/resolver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"encoding/json"
66
"testing"
77

8-
"github.com/containerd/containerd/platforms"
8+
"github.com/containerd/platforms"
99
"github.com/moby/buildkit/client/llb/sourceresolver"
1010
"github.com/moby/buildkit/solver/pb"
1111
digest "github.com/opencontainers/go-digest"

client/llb/state.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"net"
99
"strings"
1010

11-
"github.com/containerd/containerd/platforms"
11+
"github.com/containerd/platforms"
1212
"github.com/moby/buildkit/identity"
1313
"github.com/moby/buildkit/solver/pb"
1414
"github.com/moby/buildkit/util/apicaps"

cmd/buildctl/debug/workers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"text/tabwriter"
1010

11-
"github.com/containerd/containerd/platforms"
11+
"github.com/containerd/platforms"
1212
"github.com/moby/buildkit/client"
1313
bccommon "github.com/moby/buildkit/cmd/buildctl/common"
1414
"github.com/moby/buildkit/util/bklog"

0 commit comments

Comments
 (0)