Skip to content

Commit

Permalink
Fix Realpath relying on path.IsAbs which does not work on windows (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobgardner committed Feb 11, 2023
1 parent 8f02b33 commit 76b0b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/common/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 76b0b3b

Please sign in to comment.