fix: resolve symlink paths in autoimport.go for macOS

Both findBeadsDir() and findGitRoot() now use filepath.EvalSymlinks()
to resolve to canonical paths before comparison. This fixes the issue
where filepath.Rel() fails on macOS because /var is a symlink to
/private/var, causing path mismatches.

Fixes: TestDatabaseReinitialization failures on macOS

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-05 16:51:04 -08:00
parent 020eb310df
commit e701e34c38
2 changed files with 59 additions and 48 deletions

File diff suppressed because one or more lines are too long