mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 05:27:07 +08:00
vendor: github.com/moby/buildkit v0.21.0-rc1
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
This commit is contained in:
17
vendor/github.com/moby/buildkit/util/system/path_unix.go
generated
vendored
Normal file
17
vendor/github.com/moby/buildkit/util/system/path_unix.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
//go:build !windows
|
||||
|
||||
package system
|
||||
|
||||
import "path/filepath"
|
||||
|
||||
// IsAbsolutePath is just a wrapper that calls filepath.IsAbs.
|
||||
// Has been added here just for symmetry with Windows.
|
||||
func IsAbsolutePath(path string) bool {
|
||||
return filepath.IsAbs(path)
|
||||
}
|
||||
|
||||
// GetAbsolutePath does nothing on non-Windows, just returns
|
||||
// the same path.
|
||||
func GetAbsolutePath(path string) string {
|
||||
return path
|
||||
}
|
Reference in New Issue
Block a user