vendor: run go tidy and go vendor

This commit is contained in:
Nick Craig-Wood 2019-08-14 14:56:32 +01:00
parent 93228dfcc9
commit b84cc0cae7
37 changed files with 47 additions and 60 deletions

2
go.sum
View File

@ -108,8 +108,6 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGi
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/koofr/go-httpclient v0.0.0-20180104120329-03786175608a h1:W+gnfphB7WpRj0rbTF40e3edULfri4fou2kUFw6AF3A=
github.com/koofr/go-httpclient v0.0.0-20180104120329-03786175608a/go.mod h1:3xszwh+rNrYk1r9SStc4iJ326gne1OaBcrdB1ACsbzI=
github.com/koofr/go-koofrclient v0.0.0-20190131164641-7f327592caff h1:GlfzG8bgyoJYz+5sMvGpYnHrg4veNVNnDGuE9hTEMHk=
github.com/koofr/go-koofrclient v0.0.0-20190131164641-7f327592caff/go.mod h1:MRAz4Gsxd+OzrZ0owwrUHc0zLESL+1Y5syqK/sJxK2A=
github.com/koofr/go-koofrclient v0.0.0-20190715104037-2c5813f3c29c h1:MaVra5jrE7MxT4k0v0JD2Gh6h94BFu2DgDYq+zMGBW0=
github.com/koofr/go-koofrclient v0.0.0-20190715104037-2c5813f3c29c/go.mod h1:MRAz4Gsxd+OzrZ0owwrUHc0zLESL+1Y5syqK/sJxK2A=
github.com/kr/fs v0.1.0 h1:Jskdu9ieNAYnjxsi0LbQp1ulIKZV1LAFgK1tWhpZgl8=

View File

@ -41,5 +41,6 @@ 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,14 +6,13 @@ 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"
ansiterm "github.com/Azure/go-ansiterm"
"github.com/Azure/go-ansiterm"
)
// Windows keyboard constants

View File

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

View File

@ -2,7 +2,7 @@
package winterm
import ansiterm "github.com/Azure/go-ansiterm"
import "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"
ansiterm "github.com/Azure/go-ansiterm"
"github.com/Azure/go-ansiterm"
)
type windowsAnsiEventHandler struct {

View File

@ -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"
jmespath "github.com/jmespath/go-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"
v4 "github.com/aws/aws-sdk-go/aws/signer/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"
v4 "github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/query"
)

View File

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

View File

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

View File

@ -5,9 +5,8 @@ package timestamp
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
math "math"
)
// 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

View File

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

View File

@ -1,9 +1,8 @@
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"
httpclient "github.com/koofr/go-httpclient"
"github.com/koofr/go-httpclient"
)
var ErrCannotOverwrite = fmt.Errorf("Can not overwrite (filter constraint fails)")

View File

@ -1,9 +1,8 @@
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"
httpclient "github.com/koofr/go-httpclient"
"github.com/koofr/go-httpclient"
)
func (c *KoofrClient) Shared() (shared []Shared, err error) {

View File

@ -1,9 +1,8 @@
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,16 +2,13 @@
package termbox
import (
"fmt"
"os"
"os/signal"
"runtime"
"syscall"
"time"
runewidth "github.com/mattn/go-runewidth"
)
import "github.com/mattn/go-runewidth"
import "fmt"
import "os"
import "os/signal"
import "syscall"
import "runtime"
import "time"
// public API

View File

@ -4,7 +4,7 @@ import "math"
import "syscall"
import "unsafe"
import "unicode/utf16"
import runewidth "github.com/mattn/go-runewidth"
import "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,3 +10,4 @@ func isTerminal(fd int) bool {
_, err := unix.IoctlGetTermios(fd, ioctlReadTermios)
return err == nil
}

View File

@ -10,3 +10,4 @@ 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"
yaml "gopkg.in/yaml.v2"
"gopkg.in/yaml.v2"
)
type cmdOption struct {

View File

@ -6,11 +6,10 @@
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,11 +6,10 @@
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"
yaml "gopkg.in/yaml.v2"
"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"
sdk "github.com/yunify/qingstor-sdk-go"
"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"

View File

@ -26,7 +26,6 @@ import (
"sync"
"crypto"
"golang.org/x/crypto/ed25519"
"golang.org/x/crypto/ssh"
)

View File

@ -7,10 +7,9 @@
package terminal // import "golang.org/x/crypto/ssh/terminal"
import (
"golang.org/x/sys/unix"
"io"
"syscall"
"golang.org/x/sys/unix"
)
// State contains the state of a terminal.

2
vendor/gopkg.in/yaml.v2/resolve.go generated vendored
View File

@ -180,7 +180,7 @@ func resolve(tag string, in string) (rtag string, out interface{}) {
return yaml_INT_TAG, uintv
}
} else if strings.HasPrefix(plain, "-0b") {
intv, err := strconv.ParseInt("-"+plain[3:], 2, 64)
intv, err := strconv.ParseInt("-" + plain[3:], 2, 64)
if err == nil {
if true || intv == int64(int(intv)) {
return yaml_INT_TAG, int(intv)

2
vendor/gopkg.in/yaml.v2/sorter.go generated vendored
View File

@ -52,7 +52,7 @@ func (l keyList) Less(i, j int) bool {
var ai, bi int
var an, bn int64
if ar[i] == '0' || br[i] == '0' {
for j := i - 1; j >= 0 && unicode.IsDigit(ar[j]); j-- {
for j := i-1; j >= 0 && unicode.IsDigit(ar[j]); j-- {
if ar[j] != '0' {
an = 1
bn = 1

4
vendor/modules.txt vendored
View File

@ -199,6 +199,7 @@ golang.org/x/crypto/nacl/secretbox
golang.org/x/crypto/scrypt
golang.org/x/crypto/ssh
golang.org/x/crypto/ssh/terminal
golang.org/x/crypto/bcrypt
golang.org/x/crypto/internal/subtle
golang.org/x/crypto/poly1305
golang.org/x/crypto/salsa20/salsa
@ -207,9 +208,8 @@ golang.org/x/crypto/ssh/agent
golang.org/x/crypto/curve25519
golang.org/x/crypto/ed25519
golang.org/x/crypto/internal/chacha20
golang.org/x/crypto/bcrypt
golang.org/x/crypto/ed25519/internal/edwards25519
golang.org/x/crypto/blowfish
golang.org/x/crypto/ed25519/internal/edwards25519
# golang.org/x/net v0.0.0-20190620200207-3b0461eec859
golang.org/x/net/websocket
golang.org/x/net/html