From 76b0b3b90f090f9dcf56de49490c2849aa54022d Mon Sep 17 00:00:00 2001 From: Jacob Gardner Date: Sat, 11 Feb 2023 14:45:29 -0600 Subject: [PATCH] Fix Realpath relying on path.IsAbs which does not work on windows (#358) --- tools/common/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }