Skip to content

Commit 64e67bd

Browse files
committed
Update the comments
1 parent 5970a3e commit 64e67bd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

utils/pathutils_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import (
1111
)
1212

1313
// evalTempDir creates a temporary directory and resolves any symlinks in its path.
14-
// This is needed because on macOS, os.TempDir() returns /var which is a symlink to /private/var.
14+
// Some platforms use symlinked temp directories (e.g., /var -> /private/var on macOS),
15+
// which would cause path comparisons to fail without resolving first.
1516
func evalTempDir(t *testing.T) string {
1617
t.Helper()
1718
dir := t.TempDir()

0 commit comments

Comments
 (0)