replace pkg/symlink with moby/sys/symlink

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2020-10-29 23:52:56 +01:00
parent 5184bccea3
commit 1146098421
13 changed files with 231 additions and 72 deletions

17
vendor/github.com/moby/sys/symlink/fs_unix.go generated vendored Normal file
View File

@@ -0,0 +1,17 @@
// +build !windows
package symlink
import (
"path/filepath"
)
func evalSymlinks(path string) (string, error) {
return filepath.EvalSymlinks(path)
}
func isDriveOrRoot(p string) bool {
return p == string(filepath.Separator)
}
var isAbs = filepath.IsAbs