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:
Sebastiaan van Stijn
2021-11-05 13:05:38 +01:00
parent fa12f4e696
commit 9c455ded61
8 changed files with 12 additions and 13 deletions

View File

@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows
package symlink

View File

@@ -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

View File

@@ -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

View File

@@ -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
View File

@@ -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