Browse code

goimports: fix imports

Format the source according to latest goimports.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/08/05 23:37:47
Showing 125 changed files
... ...
@@ -15,7 +15,7 @@ import (
15 15
 	"github.com/docker/docker/api/types"
16 16
 	registrytypes "github.com/docker/docker/api/types/registry"
17 17
 	"github.com/docker/docker/errdefs"
18
-	"github.com/opencontainers/image-spec/specs-go/v1"
18
+	v1 "github.com/opencontainers/image-spec/specs-go/v1"
19 19
 	"github.com/pkg/errors"
20 20
 )
21 21
 
... ...
@@ -2,7 +2,7 @@ package system // import "github.com/docker/docker/api/server/router/system"
2 2
 
3 3
 import (
4 4
 	"github.com/docker/docker/api/server/router"
5
-	"github.com/docker/docker/builder/builder-next"
5
+	buildkit "github.com/docker/docker/builder/builder-next"
6 6
 	"github.com/docker/docker/builder/fscache"
7 7
 )
8 8
 
... ...
@@ -7,7 +7,7 @@ import (
7 7
 	"github.com/docker/docker/api/types/mount"
8 8
 	"github.com/docker/docker/api/types/strslice"
9 9
 	"github.com/docker/go-connections/nat"
10
-	"github.com/docker/go-units"
10
+	units "github.com/docker/go-units"
11 11
 )
12 12
 
13 13
 // CgroupnsMode represents the cgroup namespace mode of the container
... ...
@@ -4,7 +4,7 @@ import (
4 4
 	"encoding/json"
5 5
 	"net"
6 6
 
7
-	"github.com/opencontainers/image-spec/specs-go/v1"
7
+	v1 "github.com/opencontainers/image-spec/specs-go/v1"
8 8
 )
9 9
 
10 10
 // ServiceConfig stores daemon registry services configuration.
... ...
@@ -37,7 +37,7 @@ import (
37 37
 	"github.com/moby/buildkit/util/progress"
38 38
 	"github.com/moby/buildkit/util/resolver"
39 39
 	"github.com/moby/buildkit/util/tracing"
40
-	"github.com/opencontainers/go-digest"
40
+	digest "github.com/opencontainers/go-digest"
41 41
 	"github.com/opencontainers/image-spec/identity"
42 42
 	ocispec "github.com/opencontainers/image-spec/specs-go/v1"
43 43
 	"github.com/pkg/errors"
... ...
@@ -6,7 +6,7 @@ import (
6 6
 	"path/filepath"
7 7
 	"strings"
8 8
 
9
-	"github.com/Microsoft/go-winio"
9
+	winio "github.com/Microsoft/go-winio"
10 10
 	"github.com/docker/docker/pkg/idtools"
11 11
 	"github.com/docker/docker/pkg/reexec"
12 12
 	"github.com/docker/docker/pkg/system"
... ...
@@ -1,7 +1,7 @@
1 1
 package dockerfile // import "github.com/docker/docker/builder/dockerfile"
2 2
 
3 3
 import (
4
-	"github.com/docker/go-metrics"
4
+	metrics "github.com/docker/go-metrics"
5 5
 )
6 6
 
7 7
 var (
... ...
@@ -6,7 +6,7 @@ import (
6 6
 
7 7
 	"github.com/docker/docker/pkg/containerfs"
8 8
 	iradix "github.com/hashicorp/go-immutable-radix"
9
-	"github.com/opencontainers/go-digest"
9
+	digest "github.com/opencontainers/go-digest"
10 10
 	"github.com/pkg/errors"
11 11
 	"github.com/tonistiigi/fsutil"
12 12
 )
... ...
@@ -13,7 +13,7 @@ import (
13 13
 	"github.com/docker/docker/api/types"
14 14
 	"github.com/docker/docker/api/types/container"
15 15
 	"github.com/docker/docker/errdefs"
16
-	"github.com/docker/go-units"
16
+	units "github.com/docker/go-units"
17 17
 )
18 18
 
19 19
 func TestImageBuildError(t *testing.T) {
... ...
@@ -9,7 +9,7 @@ import (
9 9
 	"github.com/docker/distribution/reference"
10 10
 	"github.com/docker/docker/api/types"
11 11
 	"github.com/docker/docker/api/types/swarm"
12
-	"github.com/opencontainers/go-digest"
12
+	digest "github.com/opencontainers/go-digest"
13 13
 	"github.com/pkg/errors"
14 14
 )
15 15
 
... ...
@@ -14,8 +14,8 @@ import (
14 14
 	registrytypes "github.com/docker/docker/api/types/registry"
15 15
 	"github.com/docker/docker/api/types/swarm"
16 16
 	"github.com/docker/docker/errdefs"
17
-	"github.com/opencontainers/go-digest"
18
-	"github.com/opencontainers/image-spec/specs-go/v1"
17
+	digest "github.com/opencontainers/go-digest"
18
+	v1 "github.com/opencontainers/image-spec/specs-go/v1"
19 19
 	"gotest.tools/assert"
20 20
 	is "gotest.tools/assert/cmp"
21 21
 )
... ...
@@ -8,7 +8,7 @@ import (
8 8
 	"github.com/docker/docker/daemon/config"
9 9
 	"github.com/docker/docker/opts"
10 10
 	"github.com/docker/docker/rootless"
11
-	"github.com/docker/go-units"
11
+	units "github.com/docker/go-units"
12 12
 	"github.com/pkg/errors"
13 13
 	"github.com/spf13/pflag"
14 14
 )
... ...
@@ -4,7 +4,7 @@ import (
4 4
 	"net"
5 5
 	"net/http"
6 6
 
7
-	"github.com/docker/go-metrics"
7
+	metrics "github.com/docker/go-metrics"
8 8
 	"github.com/pkg/errors"
9 9
 	"github.com/sirupsen/logrus"
10 10
 )
... ...
@@ -36,7 +36,7 @@ import (
36 36
 	"github.com/docker/docker/restartmanager"
37 37
 	"github.com/docker/docker/volume"
38 38
 	volumemounts "github.com/docker/docker/volume/mounts"
39
-	"github.com/docker/go-units"
39
+	units "github.com/docker/go-units"
40 40
 	agentexec "github.com/docker/swarmkit/agent/exec"
41 41
 	"github.com/pkg/errors"
42 42
 	"github.com/sirupsen/logrus"
... ...
@@ -8,7 +8,7 @@ import (
8 8
 	"time"
9 9
 
10 10
 	"github.com/docker/docker/api/types"
11
-	"github.com/docker/go-units"
11
+	units "github.com/docker/go-units"
12 12
 )
13 13
 
14 14
 // State holds the current container state, and has methods to get and
... ...
@@ -9,7 +9,7 @@ import (
9 9
 	"github.com/docker/docker/api/types"
10 10
 	"github.com/docker/docker/api/types/network"
11 11
 	"github.com/docker/go-connections/nat"
12
-	"github.com/hashicorp/go-memdb"
12
+	memdb "github.com/hashicorp/go-memdb"
13 13
 	"github.com/sirupsen/logrus"
14 14
 )
15 15
 
... ...
@@ -11,7 +11,7 @@ import (
11 11
 	"github.com/docker/docker/api/types/swarm/runtime"
12 12
 	"github.com/docker/docker/errdefs"
13 13
 	"github.com/docker/docker/plugin"
14
-	"github.com/docker/docker/plugin/v2"
14
+	v2 "github.com/docker/docker/plugin/v2"
15 15
 	"github.com/docker/swarmkit/api"
16 16
 	"github.com/gogo/protobuf/proto"
17 17
 	"github.com/pkg/errors"
... ...
@@ -15,7 +15,7 @@ import (
15 15
 	"github.com/docker/docker/api/types/swarm/runtime"
16 16
 	"github.com/docker/docker/pkg/pubsub"
17 17
 	"github.com/docker/docker/plugin"
18
-	"github.com/docker/docker/plugin/v2"
18
+	v2 "github.com/docker/docker/plugin/v2"
19 19
 	"github.com/sirupsen/logrus"
20 20
 )
21 21
 
... ...
@@ -26,7 +26,7 @@ import (
26 26
 	"github.com/docker/swarmkit/api"
27 27
 	"github.com/docker/swarmkit/log"
28 28
 	gogotypes "github.com/gogo/protobuf/types"
29
-	"github.com/opencontainers/go-digest"
29
+	digest "github.com/opencontainers/go-digest"
30 30
 	"github.com/pkg/errors"
31 31
 	"github.com/sirupsen/logrus"
32 32
 	"golang.org/x/time/rate"
... ...
@@ -7,7 +7,7 @@ import (
7 7
 
8 8
 	containertypes "github.com/docker/docker/api/types/container"
9 9
 	"github.com/docker/docker/opts"
10
-	"github.com/docker/go-units"
10
+	units "github.com/docker/go-units"
11 11
 )
12 12
 
13 13
 const (
... ...
@@ -6,7 +6,7 @@ import (
6 6
 	"testing"
7 7
 
8 8
 	"github.com/docker/docker/opts"
9
-	"github.com/docker/go-units"
9
+	units "github.com/docker/go-units"
10 10
 	"github.com/spf13/pflag"
11 11
 	"gotest.tools/assert"
12 12
 	is "gotest.tools/assert/cmp"
... ...
@@ -1,6 +1,6 @@
1 1
 package events // import "github.com/docker/docker/daemon/events"
2 2
 
3
-import "github.com/docker/go-metrics"
3
+import metrics "github.com/docker/go-metrics"
4 4
 
5 5
 var (
6 6
 	eventsCounter    metrics.Counter
... ...
@@ -17,7 +17,7 @@ import (
17 17
 	"github.com/docker/docker/pkg/pools"
18 18
 	"github.com/docker/docker/pkg/signal"
19 19
 	"github.com/docker/docker/pkg/term"
20
-	"github.com/opencontainers/runtime-spec/specs-go"
20
+	specs "github.com/opencontainers/runtime-spec/specs-go"
21 21
 	"github.com/pkg/errors"
22 22
 	"github.com/sirupsen/logrus"
23 23
 )
... ...
@@ -7,7 +7,7 @@ import (
7 7
 	"github.com/docker/docker/daemon/exec"
8 8
 	"github.com/docker/docker/oci/caps"
9 9
 	"github.com/opencontainers/runc/libcontainer/apparmor"
10
-	"github.com/opencontainers/runtime-spec/specs-go"
10
+	specs "github.com/opencontainers/runtime-spec/specs-go"
11 11
 )
12 12
 
13 13
 func (daemon *Daemon) execSetPlatformOpt(c *container.Container, ec *exec.Config, p *specs.Process) error {
... ...
@@ -9,7 +9,7 @@ import (
9 9
 	"github.com/docker/docker/container"
10 10
 	"github.com/docker/docker/daemon/exec"
11 11
 	"github.com/opencontainers/runc/libcontainer/apparmor"
12
-	"github.com/opencontainers/runtime-spec/specs-go"
12
+	specs "github.com/opencontainers/runtime-spec/specs-go"
13 13
 	"gotest.tools/assert"
14 14
 )
15 15
 
... ...
@@ -32,7 +32,7 @@ import (
32 32
 	"github.com/docker/docker/pkg/mount"
33 33
 	"github.com/docker/docker/pkg/parsers"
34 34
 	"github.com/docker/docker/pkg/system"
35
-	"github.com/docker/go-units"
35
+	units "github.com/docker/go-units"
36 36
 	"github.com/opencontainers/selinux/go-selinux/label"
37 37
 	"github.com/pkg/errors"
38 38
 	"github.com/sirupsen/logrus"
... ...
@@ -27,7 +27,7 @@ import (
27 27
 	"github.com/docker/docker/pkg/mount"
28 28
 	"github.com/docker/docker/pkg/parsers"
29 29
 	"github.com/docker/docker/pkg/parsers/kernel"
30
-	"github.com/docker/go-units"
30
+	units "github.com/docker/go-units"
31 31
 	"github.com/opencontainers/selinux/go-selinux/label"
32 32
 	"github.com/pkg/errors"
33 33
 	"github.com/sirupsen/logrus"
... ...
@@ -15,7 +15,7 @@ import (
15 15
 	"github.com/docker/docker/pkg/idtools"
16 16
 	"github.com/docker/docker/pkg/locker"
17 17
 	"github.com/docker/docker/pkg/mount"
18
-	"github.com/docker/go-units"
18
+	units "github.com/docker/go-units"
19 19
 	"github.com/sirupsen/logrus"
20 20
 	"golang.org/x/sys/unix"
21 21
 )
... ...
@@ -15,7 +15,7 @@ import (
15 15
 	"github.com/docker/docker/daemon/graphdriver"
16 16
 	"github.com/docker/docker/daemon/graphdriver/quota"
17 17
 	"github.com/docker/docker/pkg/stringid"
18
-	"github.com/docker/go-units"
18
+	units "github.com/docker/go-units"
19 19
 	"golang.org/x/sys/unix"
20 20
 	"gotest.tools/assert"
21 21
 	is "gotest.tools/assert/cmp"
... ...
@@ -31,7 +31,7 @@ import (
31 31
 	"github.com/docker/docker/pkg/parsers"
32 32
 	"github.com/docker/docker/pkg/parsers/kernel"
33 33
 	"github.com/docker/docker/pkg/system"
34
-	"github.com/docker/go-units"
34
+	units "github.com/docker/go-units"
35 35
 	rsystem "github.com/opencontainers/runc/libcontainer/system"
36 36
 	"github.com/opencontainers/selinux/go-selinux/label"
37 37
 	"github.com/sirupsen/logrus"
... ...
@@ -7,7 +7,7 @@ import (
7 7
 	"github.com/docker/docker/errdefs"
8 8
 	"github.com/docker/docker/pkg/plugingetter"
9 9
 	"github.com/docker/docker/pkg/plugins"
10
-	"github.com/docker/docker/plugin/v2"
10
+	v2 "github.com/docker/docker/plugin/v2"
11 11
 	"github.com/pkg/errors"
12 12
 )
13 13
 
... ...
@@ -12,7 +12,7 @@ import (
12 12
 	"github.com/docker/docker/pkg/idtools"
13 13
 	"github.com/docker/docker/pkg/parsers"
14 14
 	"github.com/docker/docker/pkg/system"
15
-	"github.com/docker/go-units"
15
+	units "github.com/docker/go-units"
16 16
 	"github.com/opencontainers/selinux/go-selinux/label"
17 17
 	"github.com/pkg/errors"
18 18
 )
... ...
@@ -19,7 +19,7 @@ import (
19 19
 	"time"
20 20
 	"unsafe"
21 21
 
22
-	"github.com/Microsoft/go-winio"
22
+	winio "github.com/Microsoft/go-winio"
23 23
 	"github.com/Microsoft/go-winio/archive/tar"
24 24
 	"github.com/Microsoft/go-winio/backuptar"
25 25
 	"github.com/Microsoft/go-winio/vhd"
... ...
@@ -13,7 +13,7 @@ import (
13 13
 	"github.com/docker/docker/errdefs"
14 14
 	"github.com/docker/docker/image"
15 15
 	"github.com/docker/docker/layer"
16
-	"github.com/opencontainers/go-digest"
16
+	digest "github.com/opencontainers/go-digest"
17 17
 	"github.com/pkg/errors"
18 18
 	"github.com/sirupsen/logrus"
19 19
 )
... ...
@@ -14,7 +14,7 @@ import (
14 14
 	"github.com/docker/docker/errdefs"
15 15
 	"github.com/docker/docker/pkg/progress"
16 16
 	"github.com/docker/docker/registry"
17
-	"github.com/opencontainers/go-digest"
17
+	digest "github.com/opencontainers/go-digest"
18 18
 	specs "github.com/opencontainers/image-spec/specs-go/v1"
19 19
 )
20 20
 
... ...
@@ -3,7 +3,7 @@ package images // import "github.com/docker/docker/daemon/images"
3 3
 import (
4 4
 	"fmt"
5 5
 
6
-	"github.com/docker/go-metrics"
6
+	metrics "github.com/docker/go-metrics"
7 7
 )
8 8
 
9 9
 type invalidFilter struct {
... ...
@@ -15,7 +15,7 @@ import (
15 15
 	dockerreference "github.com/docker/docker/reference"
16 16
 	"github.com/docker/docker/registry"
17 17
 	"github.com/docker/libtrust"
18
-	"github.com/opencontainers/go-digest"
18
+	digest "github.com/opencontainers/go-digest"
19 19
 	"github.com/pkg/errors"
20 20
 	"github.com/sirupsen/logrus"
21 21
 )
... ...
@@ -21,7 +21,7 @@ import (
21 21
 	"github.com/docker/docker/pkg/system"
22 22
 	"github.com/docker/docker/registry"
23 23
 	"github.com/docker/go-connections/sockets"
24
-	"github.com/docker/go-metrics"
24
+	metrics "github.com/docker/go-metrics"
25 25
 	"github.com/sirupsen/logrus"
26 26
 )
27 27
 
... ...
@@ -12,7 +12,7 @@ import (
12 12
 	"github.com/docker/docker/container"
13 13
 	"github.com/docker/docker/image"
14 14
 	"github.com/google/uuid"
15
-	"github.com/opencontainers/go-digest"
15
+	digest "github.com/opencontainers/go-digest"
16 16
 	"gotest.tools/assert"
17 17
 	is "gotest.tools/assert/cmp"
18 18
 )
... ...
@@ -6,7 +6,7 @@ import (
6 6
 	"net"
7 7
 	"strings"
8 8
 
9
-	"github.com/Microsoft/go-winio"
9
+	winio "github.com/Microsoft/go-winio"
10 10
 	"github.com/docker/go-connections/sockets"
11 11
 )
12 12
 
... ...
@@ -7,7 +7,7 @@ import (
7 7
 
8 8
 	containertypes "github.com/docker/docker/api/types/container"
9 9
 	"github.com/docker/docker/pkg/plugingetter"
10
-	"github.com/docker/go-units"
10
+	units "github.com/docker/go-units"
11 11
 	"github.com/pkg/errors"
12 12
 )
13 13
 
... ...
@@ -14,7 +14,7 @@ import (
14 14
 	"github.com/docker/docker/daemon/logger"
15 15
 	"github.com/docker/docker/daemon/logger/loggerutils"
16 16
 	"github.com/docker/docker/pkg/urlutil"
17
-	"github.com/docker/go-units"
17
+	units "github.com/docker/go-units"
18 18
 	"github.com/fluent/fluent-logger-golang/fluent"
19 19
 	"github.com/pkg/errors"
20 20
 	"github.com/sirupsen/logrus"
... ...
@@ -13,7 +13,7 @@ import (
13 13
 	"github.com/docker/docker/daemon/logger"
14 14
 	"github.com/docker/docker/daemon/logger/jsonfilelog/jsonlog"
15 15
 	"github.com/docker/docker/daemon/logger/loggerutils"
16
-	"github.com/docker/go-units"
16
+	units "github.com/docker/go-units"
17 17
 	"github.com/pkg/errors"
18 18
 	"github.com/sirupsen/logrus"
19 19
 )
... ...
@@ -12,7 +12,7 @@ import (
12 12
 	"github.com/docker/docker/daemon/logger"
13 13
 	"github.com/docker/docker/daemon/logger/loggerutils"
14 14
 	"github.com/docker/docker/errdefs"
15
-	"github.com/docker/go-units"
15
+	units "github.com/docker/go-units"
16 16
 	"github.com/pkg/errors"
17 17
 	"github.com/sirupsen/logrus"
18 18
 )
... ...
@@ -1,7 +1,7 @@
1 1
 package logger // import "github.com/docker/docker/daemon/logger"
2 2
 
3 3
 import (
4
-	"github.com/docker/go-metrics"
4
+	metrics "github.com/docker/go-metrics"
5 5
 )
6 6
 
7 7
 var (
... ...
@@ -6,7 +6,7 @@ import (
6 6
 	"github.com/docker/docker/errdefs"
7 7
 	"github.com/docker/docker/pkg/plugingetter"
8 8
 	"github.com/docker/docker/pkg/plugins"
9
-	"github.com/docker/go-metrics"
9
+	metrics "github.com/docker/go-metrics"
10 10
 	"github.com/pkg/errors"
11 11
 	"github.com/prometheus/client_golang/prometheus"
12 12
 	"github.com/sirupsen/logrus"
... ...
@@ -10,8 +10,8 @@ import (
10 10
 	"github.com/docker/docker/pkg/plugingetter"
11 11
 	"github.com/docker/docker/pkg/plugins"
12 12
 	"github.com/docker/docker/plugin"
13
-	"github.com/docker/go-metrics"
14
-	"github.com/opencontainers/runtime-spec/specs-go"
13
+	metrics "github.com/docker/go-metrics"
14
+	specs "github.com/opencontainers/runtime-spec/specs-go"
15 15
 	"github.com/pkg/errors"
16 16
 	"github.com/sirupsen/logrus"
17 17
 	"golang.org/x/sys/unix"
... ...
@@ -8,7 +8,7 @@ import (
8 8
 
9 9
 	"github.com/containerd/containerd/contrib/nvidia"
10 10
 	"github.com/docker/docker/pkg/capabilities"
11
-	"github.com/opencontainers/runtime-spec/specs-go"
11
+	specs "github.com/opencontainers/runtime-spec/specs-go"
12 12
 	"github.com/pkg/errors"
13 13
 )
14 14
 
... ...
@@ -27,7 +27,7 @@ import (
27 27
 	"github.com/opencontainers/runc/libcontainer/devices"
28 28
 	rsystem "github.com/opencontainers/runc/libcontainer/system"
29 29
 	"github.com/opencontainers/runc/libcontainer/user"
30
-	"github.com/opencontainers/runtime-spec/specs-go"
30
+	specs "github.com/opencontainers/runtime-spec/specs-go"
31 31
 	"github.com/pkg/errors"
32 32
 	"github.com/sirupsen/logrus"
33 33
 	"golang.org/x/sys/unix"
... ...
@@ -2,7 +2,7 @@ package daemon // import "github.com/docker/docker/daemon"
2 2
 
3 3
 import (
4 4
 	"github.com/docker/docker/container"
5
-	"github.com/opencontainers/runtime-spec/specs-go"
5
+	specs "github.com/opencontainers/runtime-spec/specs-go"
6 6
 )
7 7
 
8 8
 func setLinuxDomainname(c *container.Container, s *specs.Spec) {
... ...
@@ -15,7 +15,7 @@ import (
15 15
 	"github.com/docker/docker/oci/caps"
16 16
 	"github.com/docker/docker/pkg/sysinfo"
17 17
 	"github.com/docker/docker/pkg/system"
18
-	"github.com/opencontainers/runtime-spec/specs-go"
18
+	specs "github.com/opencontainers/runtime-spec/specs-go"
19 19
 	"github.com/pkg/errors"
20 20
 	"github.com/sirupsen/logrus"
21 21
 	"golang.org/x/sys/windows/registry"
... ...
@@ -14,7 +14,7 @@ import (
14 14
 	"github.com/docker/docker/container"
15 15
 	swarmagent "github.com/docker/swarmkit/agent"
16 16
 	swarmapi "github.com/docker/swarmkit/api"
17
-	"github.com/opencontainers/runtime-spec/specs-go"
17
+	specs "github.com/opencontainers/runtime-spec/specs-go"
18 18
 	"golang.org/x/sys/windows/registry"
19 19
 	"gotest.tools/assert"
20 20
 )
... ...
@@ -10,7 +10,7 @@ import (
10 10
 	coci "github.com/containerd/containerd/oci"
11 11
 	"github.com/docker/docker/container"
12 12
 	"github.com/docker/docker/profiles/seccomp"
13
-	"github.com/opencontainers/runtime-spec/specs-go"
13
+	specs "github.com/opencontainers/runtime-spec/specs-go"
14 14
 	"github.com/sirupsen/logrus"
15 15
 )
16 16
 
... ...
@@ -1,6 +1,6 @@
1 1
 package daemon // import "github.com/docker/docker/daemon"
2 2
 
3
-import "github.com/opencontainers/selinux/go-selinux"
3
+import selinux "github.com/opencontainers/selinux/go-selinux"
4 4
 
5 5
 func selinuxSetDisabled() {
6 6
 	selinux.SetDisabled()
... ...
@@ -7,7 +7,7 @@ import (
7 7
 	"time"
8 8
 
9 9
 	containertypes "github.com/docker/docker/api/types/container"
10
-	"github.com/docker/go-units"
10
+	units "github.com/docker/go-units"
11 11
 )
12 12
 
13 13
 // ContainerTop handles `docker top` client requests.
... ...
@@ -5,7 +5,7 @@ import (
5 5
 
6 6
 	"github.com/docker/docker/api/types/container"
7 7
 	libcontainerdtypes "github.com/docker/docker/libcontainerd/types"
8
-	"github.com/opencontainers/runtime-spec/specs-go"
8
+	specs "github.com/opencontainers/runtime-spec/specs-go"
9 9
 )
10 10
 
11 11
 func toContainerdResources(resources container.Resources) *libcontainerdtypes.Resources {
... ...
@@ -19,7 +19,7 @@ import (
19 19
 	refstore "github.com/docker/docker/reference"
20 20
 	"github.com/docker/docker/registry"
21 21
 	"github.com/docker/libtrust"
22
-	"github.com/opencontainers/go-digest"
22
+	digest "github.com/opencontainers/go-digest"
23 23
 	specs "github.com/opencontainers/image-spec/specs-go/v1"
24 24
 )
25 25
 
... ...
@@ -9,7 +9,7 @@ import (
9 9
 	"github.com/docker/distribution"
10 10
 	"github.com/docker/distribution/reference"
11 11
 	"github.com/docker/distribution/registry/api/errcode"
12
-	"github.com/docker/distribution/registry/api/v2"
12
+	v2 "github.com/docker/distribution/registry/api/v2"
13 13
 	"github.com/docker/distribution/registry/client"
14 14
 	"github.com/docker/distribution/registry/client/auth"
15 15
 	"github.com/docker/docker/distribution/xfer"
... ...
@@ -7,7 +7,7 @@ import (
7 7
 	"testing"
8 8
 
9 9
 	"github.com/docker/distribution/registry/api/errcode"
10
-	"github.com/docker/distribution/registry/api/v2"
10
+	v2 "github.com/docker/distribution/registry/api/v2"
11 11
 	"github.com/docker/distribution/registry/client"
12 12
 )
13 13
 
... ...
@@ -1,7 +1,7 @@
1 1
 package metadata // import "github.com/docker/docker/distribution/metadata"
2 2
 
3 3
 import (
4
-	"github.com/docker/docker/image/v1"
4
+	v1 "github.com/docker/docker/image/v1"
5 5
 	"github.com/docker/docker/layer"
6 6
 	"github.com/pkg/errors"
7 7
 )
... ...
@@ -9,7 +9,7 @@ import (
9 9
 
10 10
 	"github.com/docker/docker/api/types"
11 11
 	"github.com/docker/docker/layer"
12
-	"github.com/opencontainers/go-digest"
12
+	digest "github.com/opencontainers/go-digest"
13 13
 )
14 14
 
15 15
 // V2MetadataService maps layer IDs to a set of known metadata for
... ...
@@ -9,7 +9,7 @@ import (
9 9
 	"testing"
10 10
 
11 11
 	"github.com/docker/docker/layer"
12
-	"github.com/opencontainers/go-digest"
12
+	digest "github.com/opencontainers/go-digest"
13 13
 )
14 14
 
15 15
 func TestV2MetadataService(t *testing.T) {
... ...
@@ -10,7 +10,7 @@ import (
10 10
 	"github.com/docker/docker/pkg/progress"
11 11
 	refstore "github.com/docker/docker/reference"
12 12
 	"github.com/docker/docker/registry"
13
-	"github.com/opencontainers/go-digest"
13
+	digest "github.com/opencontainers/go-digest"
14 14
 	specs "github.com/opencontainers/image-spec/specs-go/v1"
15 15
 	"github.com/pkg/errors"
16 16
 	"github.com/sirupsen/logrus"
... ...
@@ -31,7 +31,7 @@ import (
31 31
 	"github.com/docker/docker/pkg/system"
32 32
 	refstore "github.com/docker/docker/reference"
33 33
 	"github.com/docker/docker/registry"
34
-	"github.com/opencontainers/go-digest"
34
+	digest "github.com/opencontainers/go-digest"
35 35
 	specs "github.com/opencontainers/image-spec/specs-go/v1"
36 36
 	"github.com/pkg/errors"
37 37
 	"github.com/sirupsen/logrus"
... ...
@@ -12,7 +12,7 @@ import (
12 12
 
13 13
 	"github.com/docker/distribution/manifest/schema1"
14 14
 	"github.com/docker/distribution/reference"
15
-	"github.com/opencontainers/go-digest"
15
+	digest "github.com/opencontainers/go-digest"
16 16
 	specs "github.com/opencontainers/image-spec/specs-go/v1"
17 17
 	"gotest.tools/assert"
18 18
 	is "gotest.tools/assert/cmp"
... ...
@@ -24,7 +24,7 @@ import (
24 24
 	"github.com/docker/docker/pkg/progress"
25 25
 	"github.com/docker/docker/pkg/stringid"
26 26
 	"github.com/docker/docker/registry"
27
-	"github.com/opencontainers/go-digest"
27
+	digest "github.com/opencontainers/go-digest"
28 28
 	"github.com/sirupsen/logrus"
29 29
 )
30 30
 
... ...
@@ -17,7 +17,7 @@ import (
17 17
 	"github.com/docker/docker/pkg/progress"
18 18
 	refstore "github.com/docker/docker/reference"
19 19
 	"github.com/docker/docker/registry"
20
-	"github.com/opencontainers/go-digest"
20
+	digest "github.com/opencontainers/go-digest"
21 21
 )
22 22
 
23 23
 func TestGetRepositoryMountCandidates(t *testing.T) {
... ...
@@ -16,7 +16,7 @@ import (
16 16
 	"github.com/docker/docker/image"
17 17
 	"github.com/docker/docker/layer"
18 18
 	"github.com/docker/docker/pkg/progress"
19
-	"github.com/opencontainers/go-digest"
19
+	digest "github.com/opencontainers/go-digest"
20 20
 )
21 21
 
22 22
 const maxDownloadConcurrency = 3
... ...
@@ -8,7 +8,7 @@ import (
8 8
 	"sync"
9 9
 
10 10
 	"github.com/docker/docker/pkg/ioutils"
11
-	"github.com/opencontainers/go-digest"
11
+	digest "github.com/opencontainers/go-digest"
12 12
 	"github.com/pkg/errors"
13 13
 	"github.com/sirupsen/logrus"
14 14
 )
... ...
@@ -10,7 +10,7 @@ import (
10 10
 	"path/filepath"
11 11
 	"testing"
12 12
 
13
-	"github.com/opencontainers/go-digest"
13
+	digest "github.com/opencontainers/go-digest"
14 14
 	"gotest.tools/assert"
15 15
 	is "gotest.tools/assert/cmp"
16 16
 )
... ...
@@ -11,7 +11,7 @@ import (
11 11
 	"github.com/docker/docker/api/types/container"
12 12
 	"github.com/docker/docker/dockerversion"
13 13
 	"github.com/docker/docker/layer"
14
-	"github.com/opencontainers/go-digest"
14
+	digest "github.com/opencontainers/go-digest"
15 15
 )
16 16
 
17 17
 // ID is the content-addressable ID of an image.
... ...
@@ -9,7 +9,7 @@ import (
9 9
 	"github.com/docker/distribution/digestset"
10 10
 	"github.com/docker/docker/layer"
11 11
 	"github.com/docker/docker/pkg/system"
12
-	"github.com/opencontainers/go-digest"
12
+	digest "github.com/opencontainers/go-digest"
13 13
 	"github.com/pkg/errors"
14 14
 	"github.com/sirupsen/logrus"
15 15
 )
... ...
@@ -6,7 +6,7 @@ import (
6 6
 	"testing"
7 7
 
8 8
 	"github.com/docker/docker/layer"
9
-	"github.com/opencontainers/go-digest"
9
+	digest "github.com/opencontainers/go-digest"
10 10
 	"gotest.tools/assert"
11 11
 	"gotest.tools/assert/cmp"
12 12
 )
... ...
@@ -15,7 +15,7 @@ import (
15 15
 	"github.com/docker/distribution"
16 16
 	"github.com/docker/distribution/reference"
17 17
 	"github.com/docker/docker/image"
18
-	"github.com/docker/docker/image/v1"
18
+	v1 "github.com/docker/docker/image/v1"
19 19
 	"github.com/docker/docker/layer"
20 20
 	"github.com/docker/docker/pkg/archive"
21 21
 	"github.com/docker/docker/pkg/chrootarchive"
... ...
@@ -24,7 +24,7 @@ import (
24 24
 	"github.com/docker/docker/pkg/stringid"
25 25
 	"github.com/docker/docker/pkg/symlink"
26 26
 	"github.com/docker/docker/pkg/system"
27
-	"github.com/opencontainers/go-digest"
27
+	digest "github.com/opencontainers/go-digest"
28 28
 	"github.com/sirupsen/logrus"
29 29
 )
30 30
 
... ...
@@ -14,11 +14,11 @@ import (
14 14
 	"github.com/docker/distribution"
15 15
 	"github.com/docker/distribution/reference"
16 16
 	"github.com/docker/docker/image"
17
-	"github.com/docker/docker/image/v1"
17
+	v1 "github.com/docker/docker/image/v1"
18 18
 	"github.com/docker/docker/layer"
19 19
 	"github.com/docker/docker/pkg/archive"
20 20
 	"github.com/docker/docker/pkg/system"
21
-	"github.com/opencontainers/go-digest"
21
+	digest "github.com/opencontainers/go-digest"
22 22
 	"github.com/pkg/errors"
23 23
 )
24 24
 
... ...
@@ -9,7 +9,7 @@ import (
9 9
 	"github.com/docker/docker/image"
10 10
 	"github.com/docker/docker/layer"
11 11
 	"github.com/docker/docker/pkg/stringid"
12
-	"github.com/opencontainers/go-digest"
12
+	digest "github.com/opencontainers/go-digest"
13 13
 	"github.com/sirupsen/logrus"
14 14
 )
15 15
 
... ...
@@ -26,7 +26,7 @@ import (
26 26
 	"github.com/docker/docker/testutil/fakegit"
27 27
 	"github.com/docker/docker/testutil/fakestorage"
28 28
 	"github.com/moby/buildkit/frontend/dockerfile/command"
29
-	"github.com/opencontainers/go-digest"
29
+	digest "github.com/opencontainers/go-digest"
30 30
 	"gotest.tools/assert"
31 31
 	"gotest.tools/assert/cmp"
32 32
 	"gotest.tools/icmd"
... ...
@@ -19,7 +19,7 @@ import (
19 19
 	"github.com/docker/docker/integration-cli/cli"
20 20
 	"github.com/docker/docker/integration-cli/cli/build"
21 21
 	"github.com/docker/docker/testutil/fakecontext"
22
-	"github.com/docker/go-units"
22
+	units "github.com/docker/go-units"
23 23
 	"gotest.tools/assert"
24 24
 	"gotest.tools/icmd"
25 25
 )
... ...
@@ -14,7 +14,7 @@ import (
14 14
 	"github.com/docker/docker/api/types"
15 15
 	"github.com/docker/docker/integration-cli/cli"
16 16
 	"github.com/docker/docker/integration-cli/cli/build"
17
-	"github.com/opencontainers/go-digest"
17
+	digest "github.com/opencontainers/go-digest"
18 18
 	"gotest.tools/assert"
19 19
 	is "gotest.tools/assert/cmp"
20 20
 )
... ...
@@ -34,7 +34,7 @@ import (
34 34
 	"github.com/docker/docker/opts"
35 35
 	"github.com/docker/docker/pkg/mount"
36 36
 	testdaemon "github.com/docker/docker/testutil/daemon"
37
-	"github.com/docker/go-units"
37
+	units "github.com/docker/go-units"
38 38
 	"github.com/docker/libnetwork/iptables"
39 39
 	"github.com/docker/libtrust"
40 40
 	"golang.org/x/sys/unix"
... ...
@@ -15,7 +15,7 @@ import (
15 15
 	"github.com/docker/distribution/manifest/manifestlist"
16 16
 	"github.com/docker/distribution/manifest/schema2"
17 17
 	"github.com/docker/docker/integration-cli/cli/build"
18
-	"github.com/opencontainers/go-digest"
18
+	digest "github.com/opencontainers/go-digest"
19 19
 	"gotest.tools/assert"
20 20
 	"gotest.tools/icmd"
21 21
 )
... ...
@@ -8,7 +8,7 @@ import (
8 8
 	"testing"
9 9
 	"time"
10 10
 
11
-	"github.com/opencontainers/go-digest"
11
+	digest "github.com/opencontainers/go-digest"
12 12
 	"gotest.tools/assert"
13 13
 	is "gotest.tools/assert/cmp"
14 14
 )
... ...
@@ -17,7 +17,7 @@ import (
17 17
 	"time"
18 18
 
19 19
 	"github.com/docker/docker/integration-cli/cli/build"
20
-	"github.com/opencontainers/go-digest"
20
+	digest "github.com/opencontainers/go-digest"
21 21
 	"gotest.tools/assert"
22 22
 	is "gotest.tools/assert/cmp"
23 23
 	"gotest.tools/icmd"
... ...
@@ -4,7 +4,7 @@ import (
4 4
 	"io"
5 5
 	"testing"
6 6
 
7
-	"github.com/opencontainers/go-digest"
7
+	digest "github.com/opencontainers/go-digest"
8 8
 )
9 9
 
10 10
 func TestEmptyLayer(t *testing.T) {
... ...
@@ -11,7 +11,7 @@ import (
11 11
 	"testing"
12 12
 
13 13
 	"github.com/docker/docker/pkg/stringid"
14
-	"github.com/opencontainers/go-digest"
14
+	digest "github.com/opencontainers/go-digest"
15 15
 )
16 16
 
17 17
 func randomLayerID(seed int64) ChainID {
... ...
@@ -16,7 +16,7 @@ import (
16 16
 	"github.com/docker/distribution"
17 17
 	"github.com/docker/docker/pkg/archive"
18 18
 	"github.com/docker/docker/pkg/containerfs"
19
-	"github.com/opencontainers/go-digest"
19
+	digest "github.com/opencontainers/go-digest"
20 20
 	"github.com/sirupsen/logrus"
21 21
 )
22 22
 
... ...
@@ -16,7 +16,7 @@ import (
16 16
 	"github.com/docker/docker/pkg/plugingetter"
17 17
 	"github.com/docker/docker/pkg/stringid"
18 18
 	"github.com/docker/docker/pkg/system"
19
-	"github.com/opencontainers/go-digest"
19
+	digest "github.com/opencontainers/go-digest"
20 20
 	"github.com/sirupsen/logrus"
21 21
 	"github.com/vbatts/tar-split/tar/asm"
22 22
 	"github.com/vbatts/tar-split/tar/storage"
... ...
@@ -17,7 +17,7 @@ import (
17 17
 	"github.com/docker/docker/pkg/containerfs"
18 18
 	"github.com/docker/docker/pkg/idtools"
19 19
 	"github.com/docker/docker/pkg/stringid"
20
-	"github.com/opencontainers/go-digest"
20
+	digest "github.com/opencontainers/go-digest"
21 21
 )
22 22
 
23 23
 func init() {
... ...
@@ -6,7 +6,7 @@ import (
6 6
 	"io"
7 7
 	"os"
8 8
 
9
-	"github.com/opencontainers/go-digest"
9
+	digest "github.com/opencontainers/go-digest"
10 10
 	"github.com/sirupsen/logrus"
11 11
 	"github.com/vbatts/tar-split/tar/asm"
12 12
 	"github.com/vbatts/tar-split/tar/storage"
... ...
@@ -5,7 +5,7 @@ import (
5 5
 	"io"
6 6
 
7 7
 	"github.com/docker/distribution"
8
-	"github.com/opencontainers/go-digest"
8
+	digest "github.com/opencontainers/go-digest"
9 9
 )
10 10
 
11 11
 type roLayer struct {
... ...
@@ -12,7 +12,7 @@ import (
12 12
 	"github.com/containerd/containerd/containers"
13 13
 	libcontainerdtypes "github.com/docker/docker/libcontainerd/types"
14 14
 	"github.com/docker/docker/pkg/idtools"
15
-	"github.com/opencontainers/runtime-spec/specs-go"
15
+	specs "github.com/opencontainers/runtime-spec/specs-go"
16 16
 	"github.com/sirupsen/logrus"
17 17
 )
18 18
 
... ...
@@ -6,7 +6,7 @@ import (
6 6
 
7 7
 	"github.com/containerd/containerd"
8 8
 	"github.com/containerd/containerd/cio"
9
-	"github.com/opencontainers/runtime-spec/specs-go"
9
+	specs "github.com/opencontainers/runtime-spec/specs-go"
10 10
 )
11 11
 
12 12
 // EventType represents a possible event from libcontainerd
... ...
@@ -4,7 +4,7 @@ import (
4 4
 	"time"
5 5
 
6 6
 	"github.com/containerd/cgroups"
7
-	"github.com/opencontainers/runtime-spec/specs-go"
7
+	specs "github.com/opencontainers/runtime-spec/specs-go"
8 8
 )
9 9
 
10 10
 // Summary is not used on linux
... ...
@@ -4,7 +4,7 @@ import (
4 4
 	"os"
5 5
 	"runtime"
6 6
 
7
-	"github.com/opencontainers/runtime-spec/specs-go"
7
+	specs "github.com/opencontainers/runtime-spec/specs-go"
8 8
 )
9 9
 
10 10
 func iPtr(i int64) *int64        { return &i }
... ...
@@ -8,7 +8,7 @@ import (
8 8
 
9 9
 	"github.com/opencontainers/runc/libcontainer/configs"
10 10
 	"github.com/opencontainers/runc/libcontainer/devices"
11
-	"github.com/opencontainers/runtime-spec/specs-go"
11
+	specs "github.com/opencontainers/runtime-spec/specs-go"
12 12
 )
13 13
 
14 14
 // Device transforms a libcontainer configs.Device to a specs.LinuxDevice object.
... ...
@@ -1,6 +1,6 @@
1 1
 package oci // import "github.com/docker/docker/oci"
2 2
 
3
-import "github.com/opencontainers/runtime-spec/specs-go"
3
+import specs "github.com/opencontainers/runtime-spec/specs-go"
4 4
 
5 5
 // RemoveNamespace removes the `nsType` namespace from OCI spec `s`
6 6
 func RemoveNamespace(s *specs.Spec, nsType specs.LinuxNamespaceType) {
... ...
@@ -7,7 +7,7 @@ import (
7 7
 	"regexp"
8 8
 	"strings"
9 9
 
10
-	"github.com/docker/go-units"
10
+	units "github.com/docker/go-units"
11 11
 )
12 12
 
13 13
 var (
... ...
@@ -3,7 +3,7 @@ package opts // import "github.com/docker/docker/opts"
3 3
 import (
4 4
 	"fmt"
5 5
 
6
-	"github.com/docker/go-units"
6
+	units "github.com/docker/go-units"
7 7
 )
8 8
 
9 9
 // UlimitOpt defines a map of Ulimits
... ...
@@ -3,7 +3,7 @@ package opts // import "github.com/docker/docker/opts"
3 3
 import (
4 4
 	"testing"
5 5
 
6
-	"github.com/docker/go-units"
6
+	units "github.com/docker/go-units"
7 7
 )
8 8
 
9 9
 func TestUlimitOpt(t *testing.T) {
... ...
@@ -8,7 +8,7 @@ import (
8 8
 	"time"
9 9
 
10 10
 	"github.com/docker/docker/pkg/term"
11
-	"github.com/docker/go-units"
11
+	units "github.com/docker/go-units"
12 12
 	"github.com/morikuni/aec"
13 13
 )
14 14
 
... ...
@@ -9,7 +9,7 @@ import (
9 9
 	"os/exec"
10 10
 	"strings"
11 11
 
12
-	"github.com/mattn/go-shellwords"
12
+	shellwords "github.com/mattn/go-shellwords"
13 13
 )
14 14
 
15 15
 // GetKernelVersion gets the current kernel version.
... ...
@@ -10,7 +10,7 @@ import (
10 10
 	"os"
11 11
 	"strings"
12 12
 
13
-	"github.com/mattn/go-shellwords"
13
+	shellwords "github.com/mattn/go-shellwords"
14 14
 )
15 15
 
16 16
 var (
... ...
@@ -7,7 +7,7 @@ import (
7 7
 	"strconv"
8 8
 	"strings"
9 9
 
10
-	"github.com/docker/go-units"
10
+	units "github.com/docker/go-units"
11 11
 )
12 12
 
13 13
 // ReadMemInfo retrieves memory statistics of the host system and returns a
... ...
@@ -6,7 +6,7 @@ import (
6 6
 	"strings"
7 7
 	"testing"
8 8
 
9
-	"github.com/docker/go-units"
9
+	units "github.com/docker/go-units"
10 10
 )
11 11
 
12 12
 // TestMemInfo tests parseMemInfo with a static meminfo string
... ...
@@ -7,7 +7,7 @@ import (
7 7
 	"syscall" // used for STD_INPUT_HANDLE, STD_OUTPUT_HANDLE and STD_ERROR_HANDLE
8 8
 
9 9
 	"github.com/Azure/go-ansiterm/winterm"
10
-	"github.com/docker/docker/pkg/term/windows"
10
+	windowsconsole "github.com/docker/docker/pkg/term/windows"
11 11
 )
12 12
 
13 13
 // State holds the console mode for the terminal.
... ...
@@ -9,7 +9,7 @@ import (
9 9
 	"os"
10 10
 	"sync"
11 11
 
12
-	"github.com/Azure/go-ansiterm"
12
+	ansiterm "github.com/Azure/go-ansiterm"
13 13
 	"github.com/sirupsen/logrus"
14 14
 )
15 15
 
... ...
@@ -31,9 +31,9 @@ import (
31 31
 	"github.com/docker/docker/pkg/pools"
32 32
 	"github.com/docker/docker/pkg/progress"
33 33
 	"github.com/docker/docker/pkg/system"
34
-	"github.com/docker/docker/plugin/v2"
34
+	v2 "github.com/docker/docker/plugin/v2"
35 35
 	refstore "github.com/docker/docker/reference"
36
-	"github.com/opencontainers/go-digest"
36
+	digest "github.com/opencontainers/go-digest"
37 37
 	specs "github.com/opencontainers/image-spec/specs-go/v1"
38 38
 	"github.com/pkg/errors"
39 39
 	"github.com/sirupsen/logrus"
... ...
@@ -15,7 +15,7 @@ import (
15 15
 	"github.com/docker/docker/pkg/archive"
16 16
 	"github.com/docker/docker/pkg/chrootarchive"
17 17
 	"github.com/docker/docker/pkg/progress"
18
-	"github.com/opencontainers/go-digest"
18
+	digest "github.com/opencontainers/go-digest"
19 19
 	specs "github.com/opencontainers/image-spec/specs-go/v1"
20 20
 	"github.com/pkg/errors"
21 21
 	"github.com/sirupsen/logrus"
... ...
@@ -6,8 +6,8 @@ import (
6 6
 	"sync"
7 7
 
8 8
 	"github.com/docker/docker/pkg/plugins"
9
-	"github.com/docker/docker/plugin/v2"
10
-	"github.com/opencontainers/runtime-spec/specs-go"
9
+	v2 "github.com/docker/docker/plugin/v2"
10
+	specs "github.com/opencontainers/runtime-spec/specs-go"
11 11
 )
12 12
 
13 13
 // Store manages the plugin inventory in memory and on-disk
... ...
@@ -12,7 +12,7 @@ import (
12 12
 	"github.com/docker/docker/errdefs"
13 13
 	"github.com/docker/docker/libcontainerd"
14 14
 	libcontainerdtypes "github.com/docker/docker/libcontainerd/types"
15
-	"github.com/opencontainers/runtime-spec/specs-go"
15
+	specs "github.com/opencontainers/runtime-spec/specs-go"
16 16
 	"github.com/pkg/errors"
17 17
 	"github.com/sirupsen/logrus"
18 18
 )
... ...
@@ -21,10 +21,10 @@ import (
21 21
 	"github.com/docker/docker/pkg/mount"
22 22
 	"github.com/docker/docker/pkg/pubsub"
23 23
 	"github.com/docker/docker/pkg/system"
24
-	"github.com/docker/docker/plugin/v2"
24
+	v2 "github.com/docker/docker/plugin/v2"
25 25
 	"github.com/docker/docker/registry"
26
-	"github.com/opencontainers/go-digest"
27
-	"github.com/opencontainers/runtime-spec/specs-go"
26
+	digest "github.com/opencontainers/go-digest"
27
+	specs "github.com/opencontainers/runtime-spec/specs-go"
28 28
 	"github.com/pkg/errors"
29 29
 	"github.com/sirupsen/logrus"
30 30
 )
... ...
@@ -15,8 +15,8 @@ import (
15 15
 	"github.com/docker/docker/pkg/mount"
16 16
 	"github.com/docker/docker/pkg/plugins"
17 17
 	"github.com/docker/docker/pkg/stringid"
18
-	"github.com/docker/docker/plugin/v2"
19
-	"github.com/opencontainers/go-digest"
18
+	v2 "github.com/docker/docker/plugin/v2"
19
+	digest "github.com/opencontainers/go-digest"
20 20
 	"github.com/pkg/errors"
21 21
 	"github.com/sirupsen/logrus"
22 22
 	"golang.org/x/sys/unix"
... ...
@@ -12,8 +12,8 @@ import (
12 12
 	"github.com/docker/docker/pkg/mount"
13 13
 	"github.com/docker/docker/pkg/stringid"
14 14
 	"github.com/docker/docker/pkg/system"
15
-	"github.com/docker/docker/plugin/v2"
16
-	"github.com/opencontainers/runtime-spec/specs-go"
15
+	v2 "github.com/docker/docker/plugin/v2"
16
+	specs "github.com/opencontainers/runtime-spec/specs-go"
17 17
 	"github.com/pkg/errors"
18 18
 	"gotest.tools/skip"
19 19
 )
... ...
@@ -3,7 +3,7 @@ package plugin // import "github.com/docker/docker/plugin"
3 3
 import (
4 4
 	"fmt"
5 5
 
6
-	"github.com/docker/docker/plugin/v2"
6
+	v2 "github.com/docker/docker/plugin/v2"
7 7
 	specs "github.com/opencontainers/runtime-spec/specs-go"
8 8
 )
9 9
 
... ...
@@ -8,8 +8,8 @@ import (
8 8
 	"github.com/docker/docker/errdefs"
9 9
 	"github.com/docker/docker/pkg/plugingetter"
10 10
 	"github.com/docker/docker/pkg/plugins"
11
-	"github.com/docker/docker/plugin/v2"
12
-	"github.com/opencontainers/runtime-spec/specs-go"
11
+	v2 "github.com/docker/docker/plugin/v2"
12
+	specs "github.com/opencontainers/runtime-spec/specs-go"
13 13
 	"github.com/pkg/errors"
14 14
 	"github.com/sirupsen/logrus"
15 15
 )
... ...
@@ -5,7 +5,7 @@ import (
5 5
 
6 6
 	"github.com/docker/docker/api/types"
7 7
 	"github.com/docker/docker/pkg/plugingetter"
8
-	"github.com/docker/docker/plugin/v2"
8
+	v2 "github.com/docker/docker/plugin/v2"
9 9
 )
10 10
 
11 11
 func TestFilterByCapNeg(t *testing.T) {
... ...
@@ -11,8 +11,8 @@ import (
11 11
 	"github.com/docker/docker/api/types"
12 12
 	"github.com/docker/docker/pkg/plugingetter"
13 13
 	"github.com/docker/docker/pkg/plugins"
14
-	"github.com/opencontainers/go-digest"
15
-	"github.com/opencontainers/runtime-spec/specs-go"
14
+	digest "github.com/opencontainers/go-digest"
15
+	specs "github.com/opencontainers/runtime-spec/specs-go"
16 16
 )
17 17
 
18 18
 // Plugin represents an individual plugin.
... ...
@@ -9,7 +9,7 @@ import (
9 9
 	"github.com/docker/docker/api/types"
10 10
 	"github.com/docker/docker/oci"
11 11
 	"github.com/docker/docker/pkg/system"
12
-	"github.com/opencontainers/runtime-spec/specs-go"
12
+	specs "github.com/opencontainers/runtime-spec/specs-go"
13 13
 	"github.com/pkg/errors"
14 14
 )
15 15
 
... ...
@@ -5,7 +5,7 @@ package v2 // import "github.com/docker/docker/plugin/v2"
5 5
 import (
6 6
 	"errors"
7 7
 
8
-	"github.com/opencontainers/runtime-spec/specs-go"
8
+	specs "github.com/opencontainers/runtime-spec/specs-go"
9 9
 )
10 10
 
11 11
 // InitSpec creates an OCI spec from the plugin's config.
... ...
@@ -10,7 +10,7 @@ import (
10 10
 
11 11
 	"github.com/docker/distribution/reference"
12 12
 	"github.com/docker/docker/pkg/ioutils"
13
-	"github.com/opencontainers/go-digest"
13
+	digest "github.com/opencontainers/go-digest"
14 14
 	"github.com/pkg/errors"
15 15
 )
16 16
 
... ...
@@ -9,7 +9,7 @@ import (
9 9
 	"testing"
10 10
 
11 11
 	"github.com/docker/distribution/reference"
12
-	"github.com/opencontainers/go-digest"
12
+	digest "github.com/opencontainers/go-digest"
13 13
 	"gotest.tools/assert"
14 14
 	is "gotest.tools/assert/cmp"
15 15
 )
... ...
@@ -3,6 +3,7 @@ package registry // import "github.com/docker/docker/registry"
3 3
 import (
4 4
 	"bytes"
5 5
 	"crypto/sha256"
6
+
6 7
 	// this is required for some certificates
7 8
 	_ "crypto/sha512"
8 9
 	"encoding/hex"
... ...
@@ -4,7 +4,7 @@ import (
4 4
 	"io/ioutil"
5 5
 	"strconv"
6 6
 
7
-	"github.com/opencontainers/runtime-spec/specs-go"
7
+	specs "github.com/opencontainers/runtime-spec/specs-go"
8 8
 )
9 9
 
10 10
 // ToRootless converts spec to be compatible with "rootless" runc.
... ...
@@ -10,7 +10,7 @@ import (
10 10
 	"time"
11 11
 
12 12
 	"github.com/docker/docker/testutil"
13
-	"github.com/opencontainers/go-digest"
13
+	digest "github.com/opencontainers/go-digest"
14 14
 	"gotest.tools/assert"
15 15
 )
16 16
 
... ...
@@ -4,7 +4,7 @@ import (
4 4
 	"net"
5 5
 	"time"
6 6
 
7
-	"github.com/Microsoft/go-winio"
7
+	winio "github.com/Microsoft/go-winio"
8 8
 )
9 9
 
10 10
 func npipeDial(path string, timeout time.Duration) (net.Conn, error) {