build: fix up package paths after repo move

git grep -l github.com/ncw/rclone | xargs -d'\n' perl -i~ -lpe 's|github.com/ncw/rclone|github.com/rclone/rclone|g'
goimports -w `find . -name \*.go`
This commit is contained in:
Nick Craig-Wood 2019-07-28 18:47:38 +01:00
parent 4ba6532915
commit 57d5de6fba
393 changed files with 1458 additions and 1447 deletions

View file

@ -41,6 +41,5 @@ func NewPipeline(c Credential, o PipelineOptions) pipeline.Pipeline {
NewRequestLogPolicyFactory(o.RequestLog),
pipeline.MethodFactoryMarker()) // indicates at what stage in the pipeline the method factory is invoked
return pipeline.NewPipeline(f, pipeline.Options{HTTPSender: o.HTTPSender, Log: o.Log})
}

View file

@ -6,13 +6,14 @@ package azblob
import (
"context"
"encoding/base64"
"github.com/Azure/azure-pipeline-go/pipeline"
"io"
"io/ioutil"
"net/http"
"net/url"
"strconv"
"time"
"github.com/Azure/azure-pipeline-go/pipeline"
)
// appendBlobClient is the client for the AppendBlob methods of the Azblob service.

View file

@ -9,7 +9,7 @@ import (
"strings"
"syscall"
"github.com/Azure/go-ansiterm"
ansiterm "github.com/Azure/go-ansiterm"
)
// Windows keyboard constants

View file

@ -2,7 +2,7 @@
package winterm
import "github.com/Azure/go-ansiterm"
import ansiterm "github.com/Azure/go-ansiterm"
const (
FOREGROUND_COLOR_MASK = FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE

View file

@ -2,7 +2,7 @@
package winterm
import "github.com/Azure/go-ansiterm"
import ansiterm "github.com/Azure/go-ansiterm"
func (h *windowsAnsiEventHandler) clearRange(attributes uint16, fromCoord COORD, toCoord COORD) error {
// Ignore an invalid (negative area) request

View file

@ -8,7 +8,7 @@ import (
"os"
"strconv"
"github.com/Azure/go-ansiterm"
ansiterm "github.com/Azure/go-ansiterm"
)
type windowsAnsiEventHandler struct {

View file

@ -15,8 +15,8 @@ import (
const (
xsel = "xsel"
xclip = "xclip"
wlcopy = "wl-copy"
wlpaste = "wl-paste"
wlcopy = "wl-copy"
wlpaste = "wl-paste"
termuxClipboardGet = "termux-clipboard-get"
termuxClipboardSet = "termux-clipboard-set"
)
@ -34,7 +34,7 @@ var (
xclipCopyArgs = []string{xclip, "-in", "-selection", "clipboard"}
wlpasteArgs = []string{wlpaste, "--no-newline"}
wlcopyArgs = []string{wlcopy}
wlcopyArgs = []string{wlcopy}
termuxPasteArgs = []string{termuxClipboardGet}
termuxCopyArgs = []string{termuxClipboardSet}
@ -44,8 +44,8 @@ var (
func init() {
if os.Getenv("WAYLAND_DISPLAY") != "" {
pasteCmdArgs = wlpasteArgs;
copyCmdArgs = wlcopyArgs;
pasteCmdArgs = wlpasteArgs
copyCmdArgs = wlcopyArgs
if _, err := exec.LookPath(wlcopy); err == nil {
if _, err := exec.LookPath(wlpaste); err == nil {

View file

@ -6,7 +6,7 @@ import (
"strconv"
"strings"
"github.com/jmespath/go-jmespath"
jmespath "github.com/jmespath/go-jmespath"
)
var indexRe = regexp.MustCompile(`(.+)\[(-?\d+)?\]$`)

View file

@ -7,7 +7,7 @@ import (
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
v4 "github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/restxml"
)

View file

@ -7,7 +7,7 @@ import (
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
v4 "github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/query"
)

View file

@ -5,8 +5,9 @@ package any
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.

View file

@ -5,8 +5,9 @@ package duration
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.

View file

@ -5,8 +5,9 @@ package timestamp
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.

View file

@ -91,7 +91,7 @@ func Dial(addr string, options ...DialOption) (*ServerConn, error) {
if do.dialFunc != nil {
tconn, err = do.dialFunc("tcp", addr)
} else if do.tlsConfig != nil {
tconn, err = tls.DialWithDialer(&do.dialer , "tcp", addr, do.tlsConfig)
tconn, err = tls.DialWithDialer(&do.dialer, "tcp", addr, do.tlsConfig)
} else {
ctx := do.context
@ -188,7 +188,7 @@ func DialWithContext(ctx context.Context) DialOption {
}
// DialWithTLS returns a DialOption that configures the ServerConn with specified TLS config
//
//
// If called together with the DialWithDialFunc option, the DialWithDialFunc function
// will be used when dialing new connections but regardless of the function,
// the connection will be treated as a TLS connection.

View file

@ -5,7 +5,7 @@ import (
"net/http"
"net/url"
"github.com/koofr/go-httpclient"
httpclient "github.com/koofr/go-httpclient"
)
type KoofrClient struct {

View file

@ -1,8 +1,9 @@
package koofrclient
import (
"github.com/koofr/go-httpclient"
"net/http"
httpclient "github.com/koofr/go-httpclient"
)
func (c *KoofrClient) Devices() (devices []Device, err error) {

View file

@ -7,7 +7,7 @@ import (
"net/url"
"path"
"github.com/koofr/go-httpclient"
httpclient "github.com/koofr/go-httpclient"
)
var ErrCannotOverwrite = fmt.Errorf("Can not overwrite (filter constraint fails)")

View file

@ -1,8 +1,9 @@
package koofrclient
import (
"github.com/koofr/go-httpclient"
"net/http"
httpclient "github.com/koofr/go-httpclient"
)
func (c *KoofrClient) Mounts() (mounts []Mount, err error) {

View file

@ -3,7 +3,7 @@ package koofrclient
import (
"net/http"
"github.com/koofr/go-httpclient"
httpclient "github.com/koofr/go-httpclient"
)
func (c *KoofrClient) Shared() (shared []Shared, err error) {

View file

@ -1,8 +1,9 @@
package koofrclient
import (
"github.com/koofr/go-httpclient"
"net/http"
httpclient "github.com/koofr/go-httpclient"
)
func (c *KoofrClient) UserInfo() (user User, err error) {

View file

@ -2,13 +2,16 @@
package termbox
import "github.com/mattn/go-runewidth"
import "fmt"
import "os"
import "os/signal"
import "syscall"
import "runtime"
import "time"
import (
"fmt"
"os"
"os/signal"
"runtime"
"syscall"
"time"
runewidth "github.com/mattn/go-runewidth"
)
// public API

View file

@ -4,7 +4,7 @@ import "math"
import "syscall"
import "unsafe"
import "unicode/utf16"
import "github.com/mattn/go-runewidth"
import runewidth "github.com/mattn/go-runewidth"
type (
wchar uint16

View file

@ -3,9 +3,9 @@
package sftp
import (
"fmt"
"os"
"time"
"fmt"
)
func runLs(dirname string, dirent os.FileInfo) string {

View file

@ -10,4 +10,3 @@ func isTerminal(fd int) bool {
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
return err == nil
}

View file

@ -10,4 +10,3 @@ func isTerminal(fd int) bool {
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
return err == nil
}

View file

@ -23,7 +23,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"gopkg.in/yaml.v2"
yaml "gopkg.in/yaml.v2"
)
type cmdOption struct {

View file

@ -6,10 +6,11 @@
package require
import (
assert "github.com/stretchr/testify/assert"
http "net/http"
url "net/url"
time "time"
assert "github.com/stretchr/testify/assert"
)
// Condition uses a Comparison to assert a complex condition.

View file

@ -6,10 +6,11 @@
package require
import (
assert "github.com/stretchr/testify/assert"
http "net/http"
url "net/url"
time "time"
assert "github.com/stretchr/testify/assert"
)
// Condition uses a Comparison to assert a complex condition.

View file

@ -24,7 +24,7 @@ import (
"strings"
"time"
"gopkg.in/yaml.v2"
yaml "gopkg.in/yaml.v2"
"github.com/yunify/qingstor-sdk-go/logger"
"github.com/yunify/qingstor-sdk-go/utils"

View file

@ -32,7 +32,7 @@ import (
"github.com/pengsrc/go-shared/convert"
"github.com/yunify/qingstor-sdk-go"
sdk "github.com/yunify/qingstor-sdk-go"
"github.com/yunify/qingstor-sdk-go/logger"
"github.com/yunify/qingstor-sdk-go/request/data"
"github.com/yunify/qingstor-sdk-go/utils"