Manually reorganize import paths to segregate stdlib and 3rd-party packages

Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tibor Vass 2017-03-27 18:21:59 -07:00
parent e9d6193dfd
commit d26a23ceb8
20 changed files with 25 additions and 29 deletions

View File

@ -2,7 +2,6 @@ package command
import ( import (
"fmt" "fmt"
"github.com/pkg/errors"
"io" "io"
"net/http" "net/http"
"os" "os"
@ -21,6 +20,7 @@ import (
dopts "github.com/docker/docker/opts" dopts "github.com/docker/docker/opts"
"github.com/docker/go-connections/sockets" "github.com/docker/go-connections/sockets"
"github.com/docker/go-connections/tlsconfig" "github.com/docker/go-connections/tlsconfig"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -1,7 +1,6 @@
package container package container
import ( import (
"github.com/pkg/errors"
"io" "io"
"net/http/httputil" "net/http/httputil"
@ -10,6 +9,7 @@ import (
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/docker/docker/pkg/signal" "github.com/docker/docker/pkg/signal"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -2,11 +2,11 @@ package container
import ( import (
"fmt" "fmt"
"github.com/pkg/errors"
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/docker/docker/pkg/archive" "github.com/docker/docker/pkg/archive"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -1,11 +1,11 @@
package container package container
import ( import (
"github.com/pkg/errors"
"io" "io"
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -2,11 +2,11 @@ package container
import ( import (
"fmt" "fmt"
"github.com/pkg/errors"
"strings" "strings"
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -2,11 +2,11 @@ package container
import ( import (
"fmt" "fmt"
"github.com/pkg/errors"
"strings" "strings"
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -2,12 +2,12 @@ package container
import ( import (
"fmt" "fmt"
"github.com/pkg/errors"
"strings" "strings"
"time" "time"
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -2,12 +2,12 @@ package container
import ( import (
"fmt" "fmt"
"github.com/pkg/errors"
"strings" "strings"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -2,7 +2,6 @@ package container
import ( import (
"fmt" "fmt"
"github.com/pkg/errors"
"io" "io"
"net/http/httputil" "net/http/httputil"
"os" "os"
@ -18,6 +17,7 @@ import (
"github.com/docker/docker/pkg/promise" "github.com/docker/docker/pkg/promise"
"github.com/docker/docker/pkg/signal" "github.com/docker/docker/pkg/signal"
"github.com/docker/libnetwork/resolvconf/dns" "github.com/docker/libnetwork/resolvconf/dns"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/pflag" "github.com/spf13/pflag"
"golang.org/x/net/context" "golang.org/x/net/context"

View File

@ -2,7 +2,6 @@ package container
import ( import (
"fmt" "fmt"
"github.com/pkg/errors"
"io" "io"
"strings" "strings"
"sync" "sync"
@ -14,6 +13,7 @@ import (
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/docker/docker/cli/command/formatter" "github.com/docker/docker/cli/command/formatter"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -2,7 +2,6 @@ package container
import ( import (
"encoding/json" "encoding/json"
"github.com/pkg/errors"
"io" "io"
"strings" "strings"
"sync" "sync"
@ -12,6 +11,7 @@ import (
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/cli/command/formatter" "github.com/docker/docker/cli/command/formatter"
"github.com/docker/docker/client" "github.com/docker/docker/client"
"github.com/pkg/errors"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -2,12 +2,12 @@ package container
import ( import (
"fmt" "fmt"
"github.com/pkg/errors"
"strings" "strings"
"time" "time"
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -2,11 +2,11 @@ package container
import ( import (
"fmt" "fmt"
"github.com/pkg/errors"
"strings" "strings"
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -2,7 +2,6 @@ package container
import ( import (
"fmt" "fmt"
"github.com/pkg/errors"
"strings" "strings"
containertypes "github.com/docker/docker/api/types/container" containertypes "github.com/docker/docker/api/types/container"
@ -10,6 +9,7 @@ import (
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/docker/docker/opts" "github.com/docker/docker/opts"
runconfigopts "github.com/docker/docker/runconfig/opts" runconfigopts "github.com/docker/docker/runconfig/opts"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -2,11 +2,11 @@ package container
import ( import (
"fmt" "fmt"
"github.com/pkg/errors"
"strings" "strings"
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -2,16 +2,15 @@ package image
import ( import (
"fmt" "fmt"
"github.com/pkg/errors"
"strings" "strings"
"golang.org/x/net/context"
"github.com/docker/distribution/reference" "github.com/docker/distribution/reference"
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/docker/docker/registry" "github.com/docker/docker/registry"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type pullOptions struct { type pullOptions struct {

View File

@ -1,14 +1,13 @@
package image package image
import ( import (
"github.com/pkg/errors"
"io" "io"
"golang.org/x/net/context"
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type saveOptions struct { type saveOptions struct {

View File

@ -1,12 +1,12 @@
package command package command
import ( import (
"github.com/pkg/errors"
"io" "io"
"os" "os"
"runtime" "runtime"
"github.com/docker/docker/pkg/term" "github.com/docker/docker/pkg/term"
"github.com/pkg/errors"
) )
// InStream is an input stream used by the DockerCli to read user input // InStream is an input stream used by the DockerCli to read user input

View File

@ -2,13 +2,12 @@ package swarm
import ( import (
"fmt" "fmt"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/docker/docker/api/types/swarm" "github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -3,16 +3,15 @@ package swarm
import ( import (
"bufio" "bufio"
"fmt" "fmt"
"github.com/pkg/errors"
"io" "io"
"strings" "strings"
"github.com/spf13/cobra"
"golang.org/x/crypto/ssh/terminal"
"github.com/docker/docker/api/types/swarm" "github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/cli" "github.com/docker/docker/cli"
"github.com/docker/docker/cli/command" "github.com/docker/docker/cli/command"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"golang.org/x/crypto/ssh/terminal"
"golang.org/x/net/context" "golang.org/x/net/context"
) )