diff --git a/tools/common/file.go b/tools/common/file.go index 4dd7e82f7..ed2e7ddc2 100644 --- a/tools/common/file.go +++ b/tools/common/file.go @@ -26,7 +26,7 @@ func Realpath(p string) (string, error) { return "", fmt.Errorf("readlink %s failed: %w", p, err) } - if !path.IsAbs(t) { + if !filepath.IsAbs(t) { t = path.Join(path.Dir(p), t) }