Skip to content

Commit 93be907

Browse files
committed
WIP: migrate to moby modules
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 4c791dc commit 93be907

File tree

262 files changed

+1140
-14530
lines changed

Some content is hidden

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

262 files changed

+1140
-14530
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ linters:
6464
alias:
6565
- pkg: "github.com/containerd/errdefs"
6666
alias: "cerrdefs"
67-
- pkg: "github.com/docker/docker/client"
67+
- pkg: "github.com/moby/moby/client"
6868
alias: "dockerclient"
6969
- pkg: "github.com/opencontainers/image-spec/specs-go/v1"
7070
alias: "ocispecs"

build/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import (
2929
"github.com/docker/buildx/util/resolver"
3030
"github.com/docker/buildx/util/waitmap"
3131
"github.com/docker/cli/opts"
32-
"github.com/docker/docker/api/types/image"
3332
"github.com/docker/docker/pkg/jsonmessage"
3433
"github.com/moby/buildkit/client"
3534
"github.com/moby/buildkit/client/llb"
@@ -43,6 +42,7 @@ import (
4342
spb "github.com/moby/buildkit/sourcepolicy/pb"
4443
"github.com/moby/buildkit/util/progress/progresswriter"
4544
"github.com/moby/buildkit/util/tracing"
45+
"github.com/moby/moby/api/types/image"
4646
"github.com/opencontainers/go-digest"
4747
ocispecs "github.com/opencontainers/image-spec/specs-go/v1"
4848
"github.com/pkg/errors"

commands/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import (
3636
"github.com/docker/cli/cli"
3737
"github.com/docker/cli/cli/command"
3838
dockeropts "github.com/docker/cli/opts"
39-
"github.com/docker/docker/api/types/versions"
4039
"github.com/moby/buildkit/client"
4140
"github.com/moby/buildkit/exporter/containerimage/exptypes"
4241
"github.com/moby/buildkit/frontend/subrequests"
@@ -49,6 +48,7 @@ import (
4948
sourcepolicy "github.com/moby/buildkit/sourcepolicy/pb"
5049
"github.com/moby/buildkit/util/grpcerrors"
5150
"github.com/moby/buildkit/util/progress/progressui"
51+
"github.com/moby/moby/api/types/versions"
5252
"github.com/moby/sys/atomicwriter"
5353
"github.com/morikuni/aec"
5454
"github.com/pkg/errors"

commands/prune.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import (
1313
"github.com/docker/cli/cli"
1414
"github.com/docker/cli/cli/command"
1515
"github.com/docker/cli/opts"
16-
"github.com/docker/docker/api/types/filters"
1716
"github.com/docker/go-units"
1817
"github.com/moby/buildkit/client"
1918
gateway "github.com/moby/buildkit/frontend/gateway/client"
2019
pb "github.com/moby/buildkit/solver/pb"
2120
"github.com/moby/buildkit/util/apicaps"
21+
"github.com/moby/moby/api/types/filters"
2222
"github.com/pkg/errors"
2323
"github.com/spf13/cobra"
2424
"golang.org/x/sync/errgroup"

driver/docker-container/driver.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ import (
1919
"github.com/docker/buildx/util/imagetools"
2020
"github.com/docker/buildx/util/progress"
2121
"github.com/docker/cli/opts"
22-
"github.com/docker/docker/api/types/container"
23-
"github.com/docker/docker/api/types/image"
24-
"github.com/docker/docker/api/types/mount"
25-
"github.com/docker/docker/api/types/network"
26-
"github.com/docker/docker/api/types/system"
2722
"github.com/docker/docker/pkg/jsonmessage"
28-
"github.com/docker/docker/pkg/stdcopy"
2923
"github.com/moby/buildkit/client"
3024
mobyarchive "github.com/moby/go-archive"
25+
"github.com/moby/moby/api/stdcopy"
26+
"github.com/moby/moby/api/types/container"
27+
"github.com/moby/moby/api/types/image"
28+
"github.com/moby/moby/api/types/mount"
29+
"github.com/moby/moby/api/types/network"
30+
"github.com/moby/moby/api/types/system"
3131
"github.com/pkg/errors"
3232
)
3333

driver/docker-container/factory.go

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

99
"github.com/docker/buildx/driver"
1010
dockeropts "github.com/docker/cli/opts"
11-
dockerclient "github.com/docker/docker/client"
11+
dockerclient "github.com/moby/moby/client"
1212
"github.com/pkg/errors"
1313
)
1414

driver/docker/factory.go

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

66
"github.com/docker/buildx/driver"
7-
dockerclient "github.com/docker/docker/client"
7+
dockerclient "github.com/moby/moby/client"
88
"github.com/pkg/errors"
99
)
1010

driver/kubernetes/factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
ctxkube "github.com/docker/buildx/driver/kubernetes/context"
1313
"github.com/docker/buildx/driver/kubernetes/manifest"
1414
"github.com/docker/buildx/driver/kubernetes/podchooser"
15-
dockerclient "github.com/docker/docker/client"
15+
dockerclient "github.com/moby/moby/client"
1616
"github.com/pkg/errors"
1717
"github.com/sirupsen/logrus"
1818
corev1 "k8s.io/api/core/v1"

driver/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"sync"
77

88
"github.com/docker/cli/cli/context/store"
9-
dockerclient "github.com/docker/docker/client"
109
"github.com/moby/buildkit/client"
1110
"github.com/moby/buildkit/util/tracing/delegated"
11+
dockerclient "github.com/moby/moby/client"
1212
ocispecs "github.com/opencontainers/image-spec/specs-go/v1"
1313
"github.com/pkg/errors"
1414
)

driver/remote/factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/docker/buildx/driver"
1111
util "github.com/docker/buildx/driver/remote/util"
12-
dockerclient "github.com/docker/docker/client"
12+
dockerclient "github.com/moby/moby/client"
1313
"github.com/pkg/errors"
1414

1515
// import connhelpers for special url schemes

0 commit comments

Comments
 (0)