Skip to content

Conversation

@semihbkgr
Copy link
Contributor

Tests were failing on macOS because t.TempDir() returns a directory that is a symlink. The allowedDirs configuration did not include the resolved target of the symlink, causing access checks to fail.

Solution

  • Introduced a helper function resolveAllowedDirs to handle symlink resolution for directories.
  • This function ensures that both the original paths and their resolved symlink counterparts are included in the allowedDirs list.
  • Updated all relevant tests to use resolveAllowedDirs when setting up allowedDirs.

@jochil jochil merged commit 5376de9 into mark3labs:main Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants