summaryrefslogtreecommitdiffstats
path: root/vendor/gopkg.in
diff options
context:
space:
mode:
authorGlenn Vriesman <glenn.vriesman@gmail.com>2019-11-10 13:16:17 +0100
committerJesse Duffield <jessedduffield@gmail.com>2019-11-10 23:23:20 +1100
commit3f7e107d09a675b28783584d3643ee112206d905 (patch)
treed8622a53c93e2d89e9e3ddf1b0a647a28b6fa752 /vendor/gopkg.in
parent22c0d79e2dbb8a6792664e1a56fa91f28592bbc0 (diff)
Vendor: Updated dependenciesv0.10.2
* Updated go.mod * Updated go.sum * Updated vendor packages Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com>
Diffstat (limited to 'vendor/gopkg.in')
-rw-r--r--vendor/gopkg.in/src-d/go-billy.v4/.gitignore3
-rw-r--r--vendor/gopkg.in/src-d/go-billy.v4/README.md4
-rw-r--r--vendor/gopkg.in/src-d/go-billy.v4/go.mod8
-rw-r--r--vendor/gopkg.in/src-d/go-billy.v4/go.sum12
-rw-r--r--vendor/gopkg.in/src-d/go-billy.v4/osfs/os_posix.go6
-rw-r--r--vendor/gopkg.in/src-d/go-billy.v4/util/util.go39
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/COMPATIBILITY.md2
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/CONTRIBUTING.md3
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/LICENSE4
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/README.md14
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/blame.go27
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/config/branch.go23
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/config/config.go11
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/config/refspec.go17
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/go.mod29
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/go.sum92
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/internal/url/url.go37
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/object_walker.go2
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/options.go67
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/cache/buffer_lru.go98
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/cache/common.go13
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/cache/object_lru.go29
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/diff/unified_encoder.go10
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/gitignore/pattern.go3
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/idxfile/decoder.go105
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/idxfile/encoder.go101
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/idxfile/idxfile.go344
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/idxfile/writer.go186
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/index/decoder.go60
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/index/doc.go61
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/index/index.go24
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/packfile/common.go38
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/packfile/decoder.go495
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/packfile/diff_delta.go13
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/packfile/fsobject.go116
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/packfile/index.go125
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/packfile/packfile.go562
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/packfile/parser.go483
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/packfile/patch_delta.go2
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/format/packfile/scanner.go233
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/memory.go8
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/object/commit.go79
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/object/commit_walker.go144
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/object/commit_walker_bfs.go2
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/object/commit_walker_bfs_filtered.go176
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/object/commit_walker_file.go145
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/object/common.go12
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/object/merge_base.go210
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/object/object.go6
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/object/patch.go17
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/object/tag.go28
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/object/tree.go38
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/advrefs.go2
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/updreq_decode.go2
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/reference.go30
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/revlist/revlist.go16
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/storer/object.go4
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/storer/reference.go70
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/common.go22
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/http/common.go30
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/server/loader.go3
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/server/server.go5
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/ssh/auth_method.go16
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/ssh/common.go27
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/prune.go2
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/references.go4
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/remote.go107
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/repository.go478
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/status.go15
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit/dotgit.go309
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit/dotgit_setref.go51
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit/dotgit_setref_norwfs.go47
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit/writers.go30
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/storage/filesystem/index.go11
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/storage/filesystem/module.go3
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/storage/filesystem/object.go431
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/storage/filesystem/storage.go36
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/storage/memory/storage.go13
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/storage/storer.go4
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/utils/binary/read.go15
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/utils/diff/diff.go18
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/utils/merkletrie/noder/path.go10
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/worktree.go153
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/worktree_bsd.go2
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/worktree_commit.go40
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/worktree_status.go6
-rw-r--r--vendor/gopkg.in/src-d/go-git.v4/worktree_unix_other.go26
-rw-r--r--vendor/gopkg.in/yaml.v2/decode.go48
-rw-r--r--vendor/gopkg.in/yaml.v2/encode.go28
-rw-r--r--vendor/gopkg.in/yaml.v2/resolve.go2
-rw-r--r--vendor/gopkg.in/yaml.v2/scannerc.go16
91 files changed, 5094 insertions, 1404 deletions
diff --git a/vendor/gopkg.in/src-d/go-billy.v4/.gitignore b/vendor/gopkg.in/src-d/go-billy.v4/.gitignore
index 3f2bc4741..7aeb46699 100644
--- a/vendor/gopkg.in/src-d/go-billy.v4/.gitignore
+++ b/vendor/gopkg.in/src-d/go-billy.v4/.gitignore
@@ -1 +1,4 @@
/coverage.txt
+/vendor
+Gopkg.lock
+Gopkg.toml
diff --git a/vendor/gopkg.in/src-d/go-billy.v4/README.md b/vendor/gopkg.in/src-d/go-billy.v4/README.md
index d28f84a1e..ae4a3f869 100644
--- a/vendor/gopkg.in/src-d/go-billy.v4/README.md
+++ b/vendor/gopkg.in/src-d/go-billy.v4/README.md
@@ -1,7 +1,7 @@
-# go-billy [![GoDoc](https://godoc.org/gopkg.in/src-d/go-billy.v4?status.svg)](https://godoc.org/gopkg.in/src-d/go-billy.v4) [![Build Status](https://travis-ci.org/src-d/go-billy.svg)](https://travis-ci.org/src-d/go-billy) [![Build status](https://ci.appveyor.com/api/projects/status/vx2qn6vlakbi724t?svg=true)](https://ci.appveyor.com/project/mcuadros/go-billy) [![codecov](https://codecov.io/gh/src-d/go-billy/branch/master/graph/badge.svg)](https://codecov.io/gh/src-d/go-billy)
+# go-billy [![GoDoc](https://godoc.org/gopkg.in/src-d/go-billy.v4?status.svg)](https://godoc.org/gopkg.in/src-d/go-billy.v4) [![Build Status](https://travis-ci.com/src-d/go-billy.svg)](https://travis-ci.com/src-d/go-billy) [![Build status](https://ci.appveyor.com/api/projects/status/vx2qn6vlakbi724t?svg=true)](https://ci.appveyor.com/project/mcuadros/go-billy) [![codecov](https://codecov.io/gh/src-d/go-billy/branch/master/graph/badge.svg)](https://codecov.io/gh/src-d/go-billy)
The missing interface filesystem abstraction for Go.
-Billy implements an interface based on the `os` standard library, allowing to develop applications without dependency on the underlying storage. Make virtually free implement an mocks and testing over filesystem operations.
+Billy implements an interface based on the `os` standard library, allowing to develop applications without dependency on the underlying storage. Makes it virtually free to implement mocks and testing over filesystem operations.
Billy was born as part of [src-d/go-git](https://github.com/src-d/go-git) project.
diff --git a/vendor/gopkg.in/src-d/go-billy.v4/go.mod b/vendor/gopkg.in/src-d/go-billy.v4/go.mod
new file mode 100644
index 000000000..e5227de0a
--- /dev/null
+++ b/vendor/gopkg.in/src-d/go-billy.v4/go.mod
@@ -0,0 +1,8 @@
+module gopkg.in/src-d/go-billy.v4
+
+require (
+ github.com/kr/pretty v0.1.0 // indirect
+ github.com/kr/pty v1.1.8 // indirect
+ golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e
+ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
+)
diff --git a/vendor/gopkg.in/src-d/go-billy.v4/go.sum b/vendor/gopkg.in/src-d/go-billy.v4/go.sum
new file mode 100644
index 000000000..5e9ed217e
--- /dev/null
+++ b/vendor/gopkg.in/src-d/go-billy.v4/go.sum
@@ -0,0 +1,12 @@
+github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
+github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
+github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
+github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw=
+github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
+golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9 h1:lkiLiLBHGoH3XnqSLUIaBsilGMUjI+Uy2Xu2JLUtTas=
+golang.org/x/sys v0.0.0-20180903190138-2b024373dcd9/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
+gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
diff --git a/vendor/gopkg.in/src-d/go-billy.v4/osfs/os_posix.go b/vendor/gopkg.in/src-d/go-billy.v4/osfs/os_posix.go
index 0eda3bd30..144cde1c1 100644
--- a/vendor/gopkg.in/src-d/go-billy.v4/osfs/os_posix.go
+++ b/vendor/gopkg.in/src-d/go-billy.v4/osfs/os_posix.go
@@ -3,19 +3,19 @@
package osfs
import (
- "syscall"
+ "golang.org/x/sys/unix"
)
func (f *file) Lock() error {
f.m.Lock()
defer f.m.Unlock()
- return syscall.Flock(int(f.File.Fd()), syscall.LOCK_EX)
+ return unix.Flock(int(f.File.Fd()), unix.LOCK_EX)
}
func (f *file) Unlock() error {
f.m.Lock()
defer f.m.Unlock()
- return syscall.Flock(int(f.File.Fd()), syscall.LOCK_UN)
+ return unix.Flock(int(f.File.Fd()), unix.LOCK_UN)
}
diff --git a/vendor/gopkg.in/src-d/go-billy.v4/util/util.go b/vendor/gopkg.in/src-d/go-billy.v4/util/util.go
index 28763751e..cf7fb57f7 100644
--- a/vendor/gopkg.in/src-d/go-billy.v4/util/util.go
+++ b/vendor/gopkg.in/src-d/go-billy.v4/util/util.go
@@ -168,6 +168,45 @@ func TempFile(fs billy.Basic, dir, prefix string) (f billy.File, err error) {
return
}
+// TempDir creates a new temporary directory in the directory dir
+// with a name beginning with prefix and returns the path of the
+// new directory. If dir is the empty string, TempDir uses the
+// default directory for temporary files (see os.TempDir).
+// Multiple programs calling TempDir simultaneously
+// will not choose the same directory. It is the caller's responsibility
+// to remove the directory when no longer needed.
+func TempDir(fs billy.Dir, dir, prefix string) (name string, err error) {
+ // This implementation is based on stdlib ioutil.TempDir
+
+ if dir == "" {
+ dir = os.TempDir()
+ }
+
+ nconflict := 0
+ for i := 0; i < 10000; i++ {
+ try := filepath.Join(dir, prefix+nextSuffix())
+ err = fs.MkdirAll(try, 0700)
+ if os.IsExist(err) {
+ if nconflict++; nconflict > 10 {
+ randmu.Lock()
+ rand = reseed()
+ randmu.Unlock()
+ }
+ continue
+ }
+ if os.IsNotExist(err) {
+ if _, err := os.Stat(dir); os.IsNotExist(err) {
+ return "", err
+ }