f724b612d2
Fixes a bug where FindAllDatabases() would return the same database multiple times when symlinks were present in the directory hierarchy. The issue occurred because the function walked up the directory tree without resolving symlinks or checking if a database had already been discovered. This led to confusing warnings about "multiple databases" even when only one physical database existed. Changes: - Added symlink resolution using filepath.EvalSymlinks() - Implemented deduplication using a seen map with canonical paths - Added comprehensive tests for symlink scenarios This ensures that each unique database is reported exactly once, regardless of how many symlinks point to it in the directory tree. Resolves duplicate database warnings when symlinks are present.