go.mod: github.com/moby/sys/symlink v0.2.0
full diff: https://github.com/moby/sys/compare/symlink/v0.1.0...symlink/v0.2.0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
1
vendor/github.com/moby/sys/symlink/fs_unix.go
generated
vendored
1
vendor/github.com/moby/sys/symlink/fs_unix.go
generated
vendored
@@ -1,3 +1,4 @@
|
||||
//go:build !windows
|
||||
// +build !windows
|
||||
|
||||
package symlink
|
||||
|
||||
4
vendor/github.com/moby/sys/symlink/fs_windows.go
generated
vendored
4
vendor/github.com/moby/sys/symlink/fs_windows.go
generated
vendored
@@ -89,7 +89,7 @@ func walkSymlinks(path string) (string, error) {
|
||||
var b bytes.Buffer
|
||||
for n := 0; path != ""; n++ {
|
||||
if n > maxIter {
|
||||
return "", errors.New("EvalSymlinks: too many links in " + originalPath)
|
||||
return "", errors.New("too many links in " + originalPath)
|
||||
}
|
||||
|
||||
// A path beginning with `\\?\` represents the root, so automatically
|
||||
@@ -101,7 +101,7 @@ func walkSymlinks(path string) (string, error) {
|
||||
}
|
||||
|
||||
// find next path component, p
|
||||
var i = -1
|
||||
i := -1
|
||||
for j, c := range path {
|
||||
if c < utf8RuneSelf && os.IsPathSeparator(uint8(c)) {
|
||||
i = j
|
||||
|
||||
4
vendor/github.com/moby/sys/symlink/go.mod
generated
vendored
4
vendor/github.com/moby/sys/symlink/go.mod
generated
vendored
@@ -1,5 +1,5 @@
|
||||
module github.com/moby/sys/symlink
|
||||
|
||||
go 1.13
|
||||
go 1.16
|
||||
|
||||
require golang.org/x/sys v0.0.0-20200922070232-aee5d888a860
|
||||
require golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359
|
||||
|
||||
4
vendor/github.com/moby/sys/symlink/go.sum
generated
vendored
4
vendor/github.com/moby/sys/symlink/go.sum
generated
vendored
@@ -1,2 +1,2 @@
|
||||
golang.org/x/sys v0.0.0-20200922070232-aee5d888a860 h1:YEu4SMq7D0cmT7CBbXfcH0NZeuChAXwsHe/9XueUO6o=
|
||||
golang.org/x/sys v0.0.0-20200922070232-aee5d888a860/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359 h1:2B5p2L5IfGiD7+b9BOoRMC6DgObAVZV+Fsp050NqXik=
|
||||
golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
|
||||
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@@ -295,7 +295,7 @@ github.com/moby/sys/mountinfo
|
||||
# github.com/moby/sys/signal v0.5.1-0.20210723232958-8a51b5cc8879
|
||||
## explicit
|
||||
github.com/moby/sys/signal
|
||||
# github.com/moby/sys/symlink v0.1.0
|
||||
# github.com/moby/sys/symlink v0.2.0
|
||||
## explicit
|
||||
github.com/moby/sys/symlink
|
||||
# github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
|
||||
|
||||
Reference in New Issue
Block a user